标签:use 代码 turn call ret pre finish function UNC
<?php
function addme($num,$func){
$ret = call_user_func($func);
return $num + $ret;
}
$ret = addme(
1,
function(){
return 10;
}
);
var_dump($ret);
int(11)
[Finished in 0.2s]
标签:use 代码 turn call ret pre finish function UNC
原文地址:http://blog.51cto.com/12173069/2163451