title: day of the week to day number (Monday = 1, Tuesday = 2)
body: <p>Does php have a function to automatically convert dates to their day value, where Monday=1, Tuesday=2, etc. Something like this</p>
  
  <pre><code>$daynum = func('wednesday'); //echos 3
  </code></pre>