Re: Could this be a configuration directive?

From: Date: Sun, 17 Feb 2002 07:44:46 +0000
Subject: Re: Could this be a configuration directive?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85093@lists.php.net to get a copy of this message
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.

« previous php.general (#85093) next »