Re: Zend-Engine2
| From: | Markus Fischer | Date: | Sun, 19 Aug 2001 16:37:35 +0000 |
| Subject: | Re: Zend-Engine2 | ||
| References: | 1 2 3 4 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-63740@lists.php.net to get a copy of this message | ||
On Sun, Aug 19, 2001 at 06:40:04PM +0300, Andi Gutmans wrote :
> Right now the only thing which is implemented is that objects behave as
> object handles and not as native types so when you're sending objects by
> values or assigning objects the object handler is copied and not the object
> itself. Also very partially implemented is syntax such as
> $foo->method1()->method2();
Just tried it, really great.
<?php
class a {
function b() {
return new c;
}
}
class c {
function d() {
echo "Yo\n";
}
function e() {
return range(1,10);
}
}
$a = new a;
$a->b()->d();
print_r( $a->b()->e()[0]);
?>
The last line gives parse error. So, I guess no yet supported?
- Markus