title: get day from date in php
body: <p>I have the code below which I got from the php: mktime manual just edited it to use my own variables but for the day I always get "1".</p>
  
  <pre><code>$requested_day = $_GET['day'];
  $requested_month = $_GET['month'];
  $requested_year = $_GET['year'];
  
  if (!empty ($requested_day) || empty ($requested_month) || empty ($requested_year))
  {
      echo $requested_day. " ".$requested_month." ".$requested_year." is on day : ". date("1", mktime(0, 0, 0, $requested_month, $requested_day, $requested_year));
  
  
  }
  </code></pre>
  
  <p>I enter the values and it is outputted as:</p>
  
  <pre><code>23 09 2010 is on day : 1
  </code></pre>
  
  <p>I think I am having a problem on the "1" I entered on the date, I don't quite understand what this is actually for?</p>
  
  <p>Thanks</p>