Create function from string : Definition : Functions PHP Source Code


PHP Source Code » Functions » Definition »

 

Create function from string





<?
$lambda =create_function('$a,$b','return(strlen($a)-strlen($b));');
$array = array('really long string here,boy', 'this', 'middling length',
               'larger');
usort($array,$lambda);
print_r($array);

?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Functions
» Definition