title: Filtering out records from a datetime array in php
body: <p>I have an array of dates in string format (year month day):<br></p>
  
  <ul><li>2018-01-01</li>
      <li>2018-07-01</li>
      <li>2018-12-25</li></ul>
  
  <p>I also have an array of datetimes (Y-m-d H:i:s)<br>
      <ul><li>2018-07-01 9:00:00</li>
      <li>2018-07-01 15:00:00</li>
      <li>2018-07-02 9:00:00</li>
      <li>2018-07-02 15:00:00</li>
      <li>2018-07-04 9:00:00</li>
      <li>2018-07-04 15:00:00</li></ul>
  I need to filter out the records that don't match the date of any of the dates in the first array.<br>
  The correct result would be:
      <ul><li>2018-07-01 9:00:00</li>
      <li>2018-07-01 15:00:00</li></ul>
  Is there a clean way to code that?</p>