title: How can I find the maximum and minimum date in an array?
body: <p>I need to find the maximum and minimum date from a given array using PHP.</p>
  
  <p>I have $date_arr which contains following values,</p>
  
  <pre><code>  $date_arr = array('0'=&gt;'20-05-2015','1'=&gt;'02-01-2015','2'=&gt;'30-03-2015');
  </code></pre>
  
  <p>Here, I need to get the larger date as '20-05-2015' and the minimum date as '02-01-2015'.</p>
  
  <p>How can I achieve this?</p>