- var_dump: documentation ( source)
<?php
$array1 = array(
'colors' => 'red',
'shapes' => array(
'circle',
'square',
),
0 => 'waa',
);
$array2 = array(
'colors' => 'green',
'shapes' => array(
'triangle',
),
0 => 'meukee!',
);
var_dump(array_merge_resursive($array1, $array2));