$newfunc = create_function('$a,$b', 'return "$a + $b";');

echo $newfunc("Dinesh", "PHP");

Parameters: 1. arguments, 2. function code

Advertisements