3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $myArray = array( 'att' => array( 841 => 'on_time', 842 => 'not_time', 843 => 'not_time', ), 'entatt' => array( 841 => 'unexcused', 842 => 'unexcused', 843 => 'late', ), ); $result = array_merge($myArray['att'], $myArray['entatt']); var_dump($result);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(6) { [0]=> string(7) "on_time" [1]=> string(8) "not_time" [2]=> string(8) "not_time" [3]=> string(9) "unexcused" [4]=> string(9) "unexcused" [5]=> string(4) "late" }