I recently started to work with symfony 2, a really nice PHP framework. Like Zend but with different concepts. While working with it I will line out some problems I had and solutions I found. This page will gradually be updated.
Month: May 2011
PHP MySQL Chaining
In my last article I wrote about the new Lambda functions of PHP 5.3. Today I will talk about another cool feature. Since PHP version 5.3 it is possible to let functions return objects. This makes chaining like in JavaScript possible.
It is fairly simple: the function just has to return $this in the end and the next function can be added via ->.
Continue reading “PHP MySQL Chaining”