note 85843 deleted from language.references.return by felipe
| From: | felipe@php.net | Date: | Sat, 20 Sep 2008 15:32:41 +0000 |
| Subject: | note 85843 deleted from language.references.return by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-144573@lists.php.net to get a copy of this message | ||
Note Submitter: sandaimespaceman at gmail dot com
----
References can produce a chain like what jQuery used:
<?php
$a = new test();
echo ($a -> one() -> two() -> one() -> two() -> one() -> two() -> f);
?>
instead of
<?php
$a = new test();
$a -> one();
$a -> two();
$a -> one();
$a -> two();
$a -> one();
$a -> two();
echo $a -> f;
?>
They both return 29.