Re: PHP5 syntax question
| From: | Simas Toleikis | Date: | Fri, 05 Nov 2004 07:19:58 +0000 |
| Subject: | Re: PHP5 syntax question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201263@lists.php.net to get a copy of this message | ||
Gerard Samuel wrote:
I dont see it in the documentation, but I've seen samples of code using something to the effect of -> $foo->method1()->method2()It's called object dereferencing and its not implemented in PHP4. It is avalaible in PHP5. If method1() returns an instance of some object then the returned object method2() will be called. I think PHP5 docs are not full yet. Wasnt there supposed to be namespaces in PHP5? PHP documentation doesnt even mentions them...