note 93941 added to language.oop5.overloading
| From: | Frank at osu1 dot php dot net | Date: | Wed, 07 Oct 2009 18:07:09 +0000 |
| Subject: | note 93941 added to language.oop5.overloading | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-161481@lists.php.net to get a copy of this message | ||
@Franz:
The documentation does not say it won't call __set() when chaining.
It says that the value used for assignment is not the returnvalue of __set() or __get().
More specifically:
$a = $obj->b = 8;
will execute as
$obj->b = 8;
$a = 8;
instead of
$obj->b = 8;
$a = $obj->b;
----
Server IP: 69.147.83.197
Probable Submitter: 81.83.119.93
----
Manual Page -- http://www.php.net/manual/en/language.oop5.overloading.php
Edit -- https://master.php.net/note/edit/93941
Del: integrated -- https://master.php.net/note/delete/93941/integrated
Del: useless -- https://master.php.net/note/delete/93941/useless
Del: bad code -- https://master.php.net/note/delete/93941/bad+code
Del: spam -- https://master.php.net/note/delete/93941/spam
Del: non-english -- https://master.php.net/note/delete/93941/non-english
Del: in docs -- https://master.php.net/note/delete/93941/in+docs
Del: other reasons-- https://master.php.net/note/delete/93941
Reject -- https://master.php.net/note/reject/93941
Search -- https://master.php.net/manage/user-notes.php