title: Retrieve date, month, year from a date in php
body: <p>I have this piece of code which gets me a field from the database:</p>
  
  <pre><code>$end_date=$row1['end_date'];
  </code></pre>
  
  <p>If i print it it gives me something like: 25-09-2012
  What i need is to get the month value, the year and date.
  something like: </p>
  
  <pre><code>$month=09;
  $day=25;
  $year=2012;
  </code></pre>
  
  <p>How can i do that?
  thanks!</p>