title: Remove overlapping time intervals from array
body: <p>I have an array with time intervals </p>
  
  <pre><code>$timeslots = array('9:00-10:00','10:00-11:00','11:00-12:00','12:00-13:00','13:00-14:00','14:00-15:00','15:00-16:00','16:00-17:00','17:00-18:00','18:00-19:00','19:00-20:00','20:00-21:00');
  </code></pre>
  
  <p>now I have two-time intervals(dynamic)</p>
  
  <pre><code>$start="10:15";
  $end="11:15";
  </code></pre>
  
  <p>Now I want to remove two-time intervals from an array ( 10:00 to 11:00 and 11:00 to 12:00 ),
  but my current code not working correctly, where I am wrong? Here is my code</p>
  
  <pre><code>$key=array_search("10:15-11:15", $timeslots);
          unset($timeslots[$key]);
          $timeslotss=array_values($timeslots);
  </code></pre>