View Single Post
Old 06-20-2008, 07:09 PM   #2 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Before PHP 5.3.0 you can use:
call_user_func(array($var, 'displayMenu'));

With PHP 5.3.0 and above you can use what you tried and it'll work fine.
Salathe is offline  
Reply With Quote
The Following User Says Thank You to Salathe For This Useful Post:
delayedinsanity (06-20-2008)