PHP带参数匿名函数
public function niminghanshu($dd,$fn) { $fn(3333333); } public function dd() { $this->niminghanshu(1,function ($str) { print_r($str); exit(); echo 'http://c-local.biancheng.net/php/'; }); }
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/19027.html