Skip to content

Instantly share code, notes, and snippets.

@komagata
Created December 28, 2011 11:30
Show Gist options
  • Save komagata/1527640 to your computer and use it in GitHub Desktop.
Save komagata/1527640 to your computer and use it in GitHub Desktop.
array cat
<?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