From bafb2042b6c75f62f2678e55265b1918f280f8f3 Mon Sep 17 00:00:00 2001 From: Richard Quadling Date: Thu, 1 Apr 2010 11:51:26 +0000 Subject: [PATCH] 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 --- language/operators.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/language/operators.xml b/language/operators.xml index 319c30dcad..f83109a0e5 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -171,7 +171,7 @@ right - = += -= *= /= .= %= &= |= ^= <<= >>= + = += -= *= /= .= %= &= |= ^= <<= >>= => assignment @@ -334,6 +334,11 @@ $a = ($b = 4) + 5; // $a is equal to 9 now, and $b has been set to 4. + + For arrays, assigning a value to a named key is performed using + the "=>" operator. The precedence + of this operator is the same as other assignment operators. + In addition to the basic assignment operator, there are "combined operators" for all of the binary