3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = [ [ 'id' => 12345 ], [ 'date_entered' => 'today' ] ]; $array2 = [ ['id' => NULL], [ 'date entered' => 'yesterday' ] ]; $result = array(); foreach($array1 as $key => $value){ $result = array_merge_recursive($array1,$array2); } print_r($result); ?>
based on RUO0K