At 16:53 11.11.2002, Terry McBride spoke out and said: --------------------[snip]-------------------- >Hello, > >I have a question about php and OO. I want to chain methods together having >them performed on the results of the following method. Meaning something >like $foo->get("bar")->getBaz(). > >I get the following error from the script bellow. >Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' >in /usr/local/apache/php/testchain.php on line 47 > >Anybody know why I can't do this? Anyway to make it it one statement >instead of $tmp = $foo->get("bar"); $tmp->getBaz(); -- lame --? >Is their a config setting or something? --------------------[snip]--------------------
This is simply not supported in PHP... -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/