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