Re: Re: [Text_Highlight] eval() Vs call_user_func()...

From: Date: Thu, 08 Apr 2004 10:47:22 +0000
Subject: Re: Re: [Text_Highlight] eval() Vs call_user_func()...
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-27176@lists.php.net to get a copy of this message
$func = array("Text_Highlight_Php", "highlight"); $func($code);
that shouldnt work.. 2 ways to do this: a) call_user_func b) create an instance eg. $class = $this->highlightclass; $o = new $class; $o->highlight(....) Regards Alan
Got no possiblity to test it yet. But that's how call_user_func of php wants the call also, so maybe it would work with the indirection this way also. http://de2.php.net/manual/en/function.call-user-func.php Good luck, Stefan
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.dev (#27176) next »