- print_r: documentation ( source)
<?php
$array1 = [
[ 'id' => 12345 ],
[ 'id' => 54321 ]
];
$array2 = [
[ 'date_entered' => 'today' ],
[ 'date entered' => 'yesterday' ]
];
$result = array();
foreach($array1 as $key => $value){
$result[] = $array1[$key] + $array2[$key];
}
print_r($result);
?>