There are 2 arrays: $times and $zhurnal
The task: to remove from the $times array all elements that are in the $zhurnal range of elements, that is, the keys of the arrays are the beginning of the range, and the values are the end of the range.
Example of $times array:
$times = [ [600 => 660], [660 => 720], [720 => 780], [780 => 840], [840 => 900], [900 => 960], [960 => 1020], [1020 => 1080], [1080 => 1140], [1140 => 1200], [1200 => 1260] ]; An example of the $zhurnal (the numbers can be in any order):
$zhurnal = [ [660 => 720], [600 => 660] ]; Thank you in advance!