есть два массива
$users = array(array('id' => 1, 'name' => "Александр"),
array('id' =>2, 'name' => "Сергей"),
array('id' => 3, 'name' => "Никита"),
array('id' => 4, 'name' => "Володя"));
$punch = array(array('id' => 1, 'user_id' => 1, 'start' => "08:48:00", 'stop' => "12:00:00", 'date' => "2018-02-01"),
array('id' =>2, 'user_id' => 2, 'start' => "08:05:00", 'stop' => "18:00:00", 'date' => "2018-02-01"),
array('id' => 3, 'user_id' => 3, 'start' => "08:18:00", 'stop' => "13:20:00", 'date' => "2018-02-01"),
array('id' => 1, 'user_id' => 1, 'start' => "13:18:00", 'stop' => "18:48:00", 'date' => "2018-02-01"),
array('id' => 3, 'user_id' => 3, 'start' => "13:58:00", 'stop' => "18:48:00", 'date' => "2018-02-01"),
array('id' => 4, 'user_id' => 4, 'start' => "08:20:00", 'stop' => "18:15:00", 'date' => "2018-02-01"));
Как мне из этих двух массива сделать один массив виде ?
$multiarray = array('Александр'=>
array(
array( 'start' => "08:48:00", 'stop' => "12:00:00", 'date' => "2018-02-01"),
array( 'start' => "13:18:00", 'stop' => "18:48:00", 'date' => "2018-02-01")
),
'Сергей'=>
array(
array( 'start' => "08:05:00", 'stop' => "18:00:00", 'date' => "2018-02-01")
),
'Никита'=>
array(
array( 'start' => "08:18:00", 'stop' => "13:20:00", 'date' => "2018-02-01"),
array( 'start' => "13:58:00", 'stop' => "18:48:00", 'date' => "2018-02-01")
),
'Володя'=>
array(
array( 'start' => "08:20:00", 'stop' => "18:15:00", 'date' => "2018-02-01"),
array( 'start' => "13:58:00", 'stop' => "18:48:00", 'date' => "2018-02-01")
)
);