Thread: __call
View Single Post
Old 04-06-2009, 10:54 PM   #3 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Thanks! You mean I should use that in the __call function?
PHP Code:
public function __call($function$params)
{
// split the params so I get an array $array
call_user_func_array($this->DB_Helper->$function$array); 
Like that?
Is this the most efficiant/best way to do this?
__________________
Tanax is offline  
Reply With Quote