News Feed

News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way
Method chaining with PHP
December 22, 2008 @ 12:37:07

On the blog there's a quick post looking at method chaining in a Zend Framework application:

Having used the Zend Framework on a couple of projects and spent a lot of time reading the documentation I discovered the use of method chaining. This post looks at how to use method chaining in PHP.

His examples include a comparison between a method-chained Zend_Mail example and a non-chained method with each line augmenting the same object over and over. He also includes the simple-as-pie method that lets you use chaining in your own applications - returning the object itself.

0 comments voice your opinion now!
method chain zendframework zendmail tutorial example

blog comments powered by Disqus

Similar Posts How to Use APC Caching with PHP

Dutch Web Alliance: The definitive remote debug and unittest with PHPStorm guide: part 7

Robert Basic's Blog: Loading custom module plugins

Zend Developer Zone: Announcing July's Zend Framework Bug Hunt Days MySQL PHP search: four-part video tutorial series

Community Events

Don't see your event here?
Let us know!

application developer community threedevsandamaybe release project language code configure api list introduction bugfix laravel series framework interview wordpress podcast library

All content copyright, 2014 :: - Powered by the Solar PHP Framework