mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
6c4efc8690
commit
bafb2042b6
1 changed files with 6 additions and 1 deletions
|
@ -171,7 +171,7 @@
|
|||
<row>
|
||||
<entry>right</entry>
|
||||
<entry>
|
||||
= += -= *= /= .= %= &= |= ^= <<= >>=
|
||||
= += -= *= /= .= %= &= |= ^= <<= >>= =>
|
||||
</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 "=>" 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
|
||||
|
|
Loading…
Reference in a new issue