Hope anybody can help me here. I have 2 Arrays with given start and end times. What i need to do is to check if the time range from Array 1 is in the range of Array 2 and if it is in the range it have to be removed from Array 2.
Array 1:
Array (
[0] => Array ( [from] => 10:00:00 [to] => 10:30:00 )
[1] => Array ( [from] => 11:00:00 [to] => 11:45:00 )
[2] => Array ( [from] => 14:00:00 [to] => 15:00:00 )
[3] => Array ( [from] => 16:30:00 [to] => 17:00:00 )
)
Array 2:
Array (
[0] => Array ( [from] => 09:30 [to] => 10:00 )
[1] => Array ( [from] => 10:15 [to] => 10:45 )
[2] => Array ( [from] => 11:00 [to] => 11:30 )
[3] => Array ( [from] => 11:45 [to] => 12:15 )
[4] => Array ( [from] => 12:30 [to] => 13:00 )
[5] => Array ( [from] => 13:15 [to] => 13:45 )
[6] => Array ( [from] => 14:00 [to] => 14:30 )
[7] => Array ( [from] => 14:45 [to] => 15:15 )
[8] => Array ( [from] => 15:30 [to] => 16:00 )
[9] => Array ( [from] => 16:15 [to] => 16:45 )
[10] => Array ( [from] => 17:00 [to] => 17:30 )
[11] => Array ( [from] => 17:45 [to] => 18:15 )
[12] => Array ( [from] => 18:30 [to] => 19:00 )
[13] => Array ( [from] => 19:15 [to] => 19:45 )
)
Hope there is somebody out there who can help me with this. Thanks in advance for your help!