note 85844 added to language.references.return
| From: | sandaimespaceman at gmail dot com | Date: | Sat, 20 Sep 2008 06:09:17 +0000 |
| Subject: | note 85844 added to language.references.return | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144569@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 216.235.15.211
Probable Submitter: 74.210.67.132
----
Manual Page -- http://www.php.net/manual/en/language.references.return.php
Edit -- https://master.php.net/note/edit/85844
Del: integrated -- https://master.php.net/note/delete/85844/integrated
Del: useless -- https://master.php.net/note/delete/85844/useless
Del: bad code -- https://master.php.net/note/delete/85844/bad+code
Del: spam -- https://master.php.net/note/delete/85844/spam
Del: non-english -- https://master.php.net/note/delete/85844/non-english
Del: in docs -- https://master.php.net/note/delete/85844/in+docs
Del: other reasons-- https://master.php.net/note/delete/85844
Reject -- https://master.php.net/note/reject/85844
Search -- https://master.php.net/manage/user-notes.php