Document array key => value operator assignment. Fix bug#51454

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297272 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Richard Quadling 2010-04-01 11:51:26 +00:00
parent 6c4efc8690
commit bafb2042b6

View file

@ -171,7 +171,7 @@
<row>
<entry>right</entry>
<entry>
= += -= *= /= .= %= &amp;= |= ^= &lt;&lt;= &gt;&gt;=
= += -= *= /= .= %= &amp;= |= ^= &lt;&lt;= &gt;&gt;= =&gt;
</entry>
<entry>
<link linkend="language.operators.assignment">assignment</link>
@ -334,6 +334,11 @@ $a = ($b = 4) + 5; // $a is equal to 9 now, and $b has been set to 4.
</programlisting>
</informalexample>
</para>
<para>
For <type>arrays</type>, assigning a value to a named key is performed using
the "=&gt;" operator. The <link linkend="language.operators.precedence">precedence</link>
of this operator is the same as other assignment operators.
</para>
<para>
In addition to the basic assignment operator, there are "combined
operators" for all of the <link linkend="language.operators">binary