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/'; 
        }); 
    }

原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/19027.html

(0)
上一篇 2021年7月19日 21:38
下一篇 2021年7月19日 21:38

相关推荐

发表回复

登录后才能评论