[php] php lambda
摘要:
1 <?php2 // http://cn.php.net/manual/zh/function.create-function.php3 $lambda = create_function('$a,$b','return ($a > $b)? $a : $b;');4 var_dump($lambda);5 echo $lambda(1,2);下面一些具体的示例 1 function do_foreach($arrData,$func) { 2 $arrResult = array(); 3 foreach($arrData as $row) { 阅读全文