Parse error: parse error, unexpected '{' in .......
Cheers
John W. Holmes wrote:
adam wrote:
Hi!
I have folowing function which they are a member in a class.
function foo(){ something }
function zoo(){ something else }
and i have a array such:
$test = array(1=>foo,2=zoo);
and i want to call the fuction foo() and zoo something like;
$object->$test[1]();
Try:
{$object->$test[1]}();
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php