[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/language/_operators.xml?=
From: Bob_Weinand <bwoebi () php ! net>
Date: 2015-10-22 12:27:56
Message-ID: svn-bwoebi-1445516876-338020-389729710 () svn ! php ! net
[Download RAW message or body]
bwoebi Thu, 22 Oct 2015 12:27:56 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=338020
Log:
Extend the existing array operator example to illustrate the behavior of +=.
--
Provided by anonymous 62668 ()
Changed paths:
U phpdoc/en/trunk/language/operators.xml
Modified: phpdoc/en/trunk/language/operators.xml
===================================================================
--- phpdoc/en/trunk/language/operators.xml 2015-10-22 12:00:00 UTC (rev 338019)
+++ phpdoc/en/trunk/language/operators.xml 2015-10-22 12:27:56 UTC (rev 338020)
@@ -2050,6 +2050,10 @@
$c = $b + $a; // Union of $b and $a
echo "Union of \$b and \$a: \n";
var_dump($c);
+
+$a += $b; // Union of $a += $b is $a and $b
+echo "Union of \$a += \$b: \n";
+var_dump($a);
?>
]]>
</programlisting>
@@ -2075,6 +2079,15 @@
["c"]=>
string(6) "cherry"
}
+Union of $a += $b:
+array(3) {
+ 'a' =>
+ string(5) "apple"
+ 'b' =>
+ string(6) "banana"
+ 'c' =>
+ string(6) "cherry"
+}
]]>
</screen>
</para>
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic