News Feed
Sections




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

Juozas Kaziukenas' Blog:
Lambda functions are coming to PHP
March 30, 2009 @ 12:04:36

In this recent post to his blog Juozas Kaziukenas looks at one of the features in the next major upcoming release of PHP (5.3) - lambda functions (anonymous functions).

Only some days ago PHP.net introduced lambda functions (+ closures) are most anticipated, because they'll increase flexibility and good-looks of code a lot. Today I'm going to try to prove why lambda functions are so useful.

He looks at what lambda functions are and one of their more apparent uses - sorting. He gives an example working with information about authors and their books, sorting them by publisher and title.

0 comments voice your opinion now!
lambda function anonymous function php5 closure


blog comments powered by Disqus

Similar Posts

CorePHP Blog: A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

HowTo Forge: Installing Lighttpd With PHP5 And MySQL Support On Fedora 7

Antony Dovgal's Blog: 5.3 snapshots are available

DevShed: Handling MySQL Data Set Failures in PHP 5

Gonzalo Ayuso's Blog: New features in PHP5.4 alpha1


Community Events





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


interview bugfix introduction laravel series list symfony opinion tips developer zendserver conference community language api release podcast framework deployment library

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