NYCPHP Meetup

NYPHP.org

[nycphp-talk] mystery parameter for process method in PEAR, HTML_QuickForm

Adam Maccabee Trachtenberg adam at trachtenberg.com
Wed Jun 16 11:21:38 EDT 2004


On Wed, 16 Jun 2004, Dan Cech wrote:

> Yeah, the good old 'anonymous' or 'lambda' function, very useful for
> little jobs... The majority of php programmers have probably used
> create_function (http://php.net/create_function) at one time or another,
> if only for feeding it to array_(map|reduce|walk) or usort.

Unfortunately, create_function is (was?) very slow. It's much faster
to pre-define the function in PHP. Not so in LISP, which has a highly
optimized eval() nature.

-adam

-- 
adam at trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!



More information about the talk mailing list