3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $map = ['position_id'=>[ 'Regular Hours' => [ ['name'=>'Regular Hours', 'hours'=>'40.000','job_id'=>'1'], ], 'Overtime' => [ ['name'=>'Regular Hours', 'hours'=>'40.000','job_id'=>'1'], ], 'Double Overtime' => [ ['name'=>'Regular Hours', 'hours'=>'40.000','job_id'=>'1'], ], ]]; $map = array_map('array_values', $map); $map = array_merge($map); print_r($map);
Output for 5.6.0 - 7.3.0alpha1
Array ( [position_id] => Array ( [0] => Array ( [0] => Array ( [name] => Regular Hours [hours] => 40.000 [job_id] => 1 ) ) [1] => Array ( [0] => Array ( [name] => Regular Hours [hours] => 40.000 [job_id] => 1 ) ) [2] => Array ( [0] => Array ( [name] => Regular Hours [hours] => 40.000 [job_id] => 1 ) ) ) )