PHP带参数匿名函数
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/'; }); }
- 上一篇 »一文带你搞懂PHP对象注入
- 下一篇 »linux的shell函数参数