title: How to remove date from an array having a same year, month and day with higher time?
body: <p>In PHP how to remove dates from an array having a same year, month and day with higher times?</p>
  
  <pre><code>array(7) { 
      [0]=&gt; string(19) "2012-06-11 08:30:49" 
      [1]=&gt; string(19) "2012-06-11 08:03:54" 
      [2]=&gt; string(19) "2012-05-26 23:04:04" 
      [3]=&gt; string(19) "2012-05-27 08:30:00" 
      [4]=&gt; string(19) "2012-06-08 08:30:55" 
      [5]=&gt; string(19) "2012-06-08 08:31:12" 
      [6]=&gt; string(19) "2012-06-08 08:55:24"
  }
  </code></pre>
  
  <p>Will remove <code>array[0],array[5],array[6]</code></p>
  
  <p>Output:</p>
  
  <pre><code>('2012-06-11 08:03:54',''2012-05-26 23:04:04','2012-05-27 08:30:00','2012-06-08 08:30:55')
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>'2012-06-11 08:03:54'
  '2012-05-26 23:04:04'
  '2012-05-27 08:30:00'
  '2012-06-08 08:30:55'
  </code></pre>
  
  <p>In other words, I only want the earliest date on distinct days.</p>