$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