I have 2 two arrays
$schedule = [
"Monday" => [0 => "12:00", 1 => "01:20"],
"Tuesday" => [0 => "04:20",1 => "12:00"],
];
$bookedSlots = [
["Monday" => "01:20"],
["Tuesday" => "04:20" ]
];
Now I want the answer or result to return an array of the remaining available slots in which the booked slots should be eliminated from the schedule. like the result given below.
$availableSlots = $schedule - $bookedSlots; // [ "Monday" => [ 0 => "12:00"], "Tuesday" =>[ 0 => "12:00" ];