mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
cc8bf3df3b
commit
f417871e66
1 changed files with 10 additions and 0 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue