时间:2021-07-01 10:21:17 帮助过:18人阅读
class class_a
{
public $var_a = 0;
public function fun_1 ( $var )
{
var_dump( $this->var_a + $var );
}
};
$obj_a = new class_a();
$obj_a->var_a = 6;
call_user_func_array( array( 'class_a', 'fun_1' ), array( 5 ) );
class class_a
{
public $var_a = 0;
public function fun_1 ( $var )
{
var_dump( $this->var_a + $var );
}
};
$obj_a = new class_a();
$obj_a->var_a = 6;
call_user_func_array( array($obj_a, 'fun_1' ), array( 5 ) );