Add a note about chaining assignments, responding to several user notes.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@287826 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Convissor 2009-08-28 03:22:29 +00:00
parent cc8bf3df3b
commit f417871e66

View file

@ -132,6 +132,16 @@
<link linkend="language.oop5.static">static</link>.
</para>
<note>
<para>
The return value of <literal>__set()</literal> is ignored
because of the way PHP processes the assignment operator.
Similarly, <literal>__get()</literal> is never called when
chaining assignemnts together like this:
<literal><![CDATA[ $a = $obj->b = 8; ]]></literal>
</para>
</note>
<example>
<title>overloading with __get, __set, __isset and __unset example</title>
<programlisting role="php">