Re: call_user_func_array on STATIC method

From: Date: Sat, 19 Aug 2006 00:37:35 +0000
Subject: Re: call_user_func_array on STATIC method
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-240882@lists.php.net to get a copy of this message
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

« previous php.general (#240882) next »