title: finding weekday with php getdate() function
body: <p>I am trying to build a function in php where it takes the user input date, which can be any date within pretty much the last 20 years.  i tried to use the getdate() function in php to return to them the day of the week. 
  here is what I have that isn't working.</p>
  
  <pre><code>$date="8/4/2010";//user input
  $dateget=getdate($date);
  echo $dateget; // i want an output like "monday" or "saturday" 
  </code></pre>
  
  <p>when i run this code i get this error</p>
  
  <pre><code>A non well formed numeric value encountered (on the $dateget=getdate($date) line)
  </code></pre>
  
  <p>Thanks</p>