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