svn: /phpdoc/en/trunk/language/ operators.xml
| From: | Richard Quadling | Date: | Thu, 01 Apr 2010 11:51:26 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/ operators.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6304@lists.php.net to get a copy of this message | ||
rquadling Thu, 01 Apr 2010 11:51:26 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=297272
Log:
Document array key => value operator assignment. Fix bug#51454
Bug: http://bugs.php.net/51454 (Open) Operator => missing
from the precedence list
Changed paths:
U phpdoc/en/trunk/language/operators.xml
Modified: phpdoc/en/trunk/language/operators.xml
===================================================================
--- phpdoc/en/trunk/language/operators.xml 2010-04-01 11:50:24 UTC (rev 297271)
+++ phpdoc/en/trunk/language/operators.xml 2010-04-01 11:51:26 UTC (rev 297272)
@@ -171,7 +171,7 @@
<row>
<entry>right</entry>
<entry>
- = += -= *= /= .= %= &= |= ^= <<= >>=
+ = += -= *= /= .= %= &= |= ^= <<= >>= =>
</entry>
<entry>
<link linkend="language.operators.assignment">assignment</link>
@@ -335,6 +335,11 @@
</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
arithmetic</link>, array union and string operators that allow you to use a value in an