News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Travis Swicegood:
Fluent-API, here I come!
October 28, 2007 @ 22:34:43

On his blog, Travis Swicegood discusses method chaining and Fluent APIs in PHP5.
One of the things that bugs me about PHP is that fluent APIs that were made possible by method chaining in PHP 5 are hindered by the new keyword. In Python or Javascript it's possible to instantiate the object and continue chaining it.
Check out the comments on his blog for more code examples and solutions for implementing method chaining in PHP5
0 comments voice your opinion now!
fluentapi methodchaining api php5 tutorial fluentapi methodchaining api php5 tutorial


blog comments powered by Disqus

Similar Posts

PHPFreaks.com: Protecting php applications with PHPIDS

PHPBuilder.com: Profiling PHP Code with Xdebug and KCacheGrind

Secunia.com: Slackware update for PHP5

MaltBlue.com: Zend Framework 2 - The New HTML5 Form Fields

Zend Developer Zone: Build an Enterprise-Grade PHP Stack with Zend Server 5.0 and Oracle 11g


Community Events





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


composer install voicesoftheelephpant podcast framework community release package version opinion symfony language update security series interview tool laravel library introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework