Lambda function became very popular in Python. And from version 4.0.1, we have it on php as well.
Here’s a little snippet for your copy-paste comfort :
<?php
$newfunc = create_function(‘$a,$b’, ‘return “ln($a) + ln($b) = ” . log($a * $b);’);
echo “Lambda Function: $newfunc\n”;
echo $newfunc(2, M_E) . “\n”;?>
Give it a try on php-cli to check out J