title: Getting day, month, year from the string format "DD-MM-YYYY"
body: <p>I have a date in string format <code>DD-MM-YYYY</code>. </p>
  
  <pre><code>date_string = "08-01-2008";
  </code></pre>
  
  <p>I would like to extract the day, month, year information from <code>date_string</code> such that;</p>
  
  <pre><code>day="08";
  month="01";
  year="2008";
  </code></pre>
  
  <p>How can this be done in php? </p>