Created
December 28, 2011 11:30
-
-
Save komagata/1527640 to your computer and use it in GitHub Desktop.
array cat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$foo = array(); | |
$a = array(1,2,3); | |
$b = array(4,5,6); | |
$foo += $a; | |
$foo += $b; | |
print_r($foo); | |
?> | |
// result | |
Array | |
( | |
[0] => 1 | |
[1] => 2 | |
[2] => 3 | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment