At 11:22 PM 2/16/2002 -0800, Anas Mughal wrote:
>I get a parse error using my CGI version of PHP on the
>following line:
>
>    $message = $$this->func_name($string);
>
>However, the same above line works fine with my ISP's
>CGI version of PHP.

That is strange.  Just for kicks, try using curly braces to make the 
statement less ambiguous.  Is the variable part just the object name, or is 
it the entire method?  See if it works like this:

$message = ${$this}->func_name($string);

or like this:

$message = ${$this->func_name($string)};

Depending on which one you mean.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to