Thank you very much... This worked:
$message = ${$this->func_name($string)}; and, this worked: (I am going to stick with this) $message = ${$this->func_name}($string); However, this did NOT work: $message = ${$this}->func_name($string); Lesson learned: I need to enclose the function name variable in curly braces. Thanks. --- Michael Sims <[EMAIL PROTECTED]> wrote: > 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 > ===== Anas Mughal [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 973-249-6665 __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php