Comments By: shaunxcode
-
Hey, sorry for being late to the party but check this out: //L is for lambda $L = Array(); function lambda($args = '', $content = '') { global $L; $name = create_function($args, $content); $L[$name] = $name; return $name; } //and now you can do: echo $L[lambda('$x','return $x;')]('hello world'); //and again echo $L[lambda('$y','return $x*x;')](3.14);
posted on May 18, 2008 at 1:10am | context
