title: convert month from name to number
body: <p>Is there an easy way to change <code>$month = "July";</code> so that <code>$nmonth = 7</code>  (<code>07</code> would be fine too).
  I could do a case statement, but surely there is already a function to convert?
  EDIT:
  I wish I could accept multiple answers, cause two of you basically gave me what I needed by your powers combined.</p>
  
  <pre><code>$nmonth = date('m',strtotime($month));
  </code></pre>
  
  <p>That will give the numerical value for <code>$month</code>.
  Thanks!</p>