日期:2014-05-17 浏览次数:20464 次
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 ) );