<?$ar1 = array(array('a','b'));$ar2 = array(array('c','d'));$result = array_merge_recursive($ar1, $ar2);print_r($result);
Standard input is empty
Array ( [0] => Array ( [0] => a [1] => b ) [1] => Array ( [0] => c [1] => d ) )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!