Re: call_user_func_array on STATIC method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



steve wrote:
> Does anyone know of a way to call a static method with an array of objects?
> 
> I thought for sure this would work, but it does not:
> 
> $v = call_user_func_array("$class::$method",$params);
> 
> Do I have to resort to eval()???

$v = call_user_func_array(array($class, $method), $params);

Greg

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux