title: How Do I Get The First Day Of The Months Number In PHP?
body: <p>I know that I can use <code>date("w");</code> to get a number 0-6 depending on what day it is, but how would I do this to see what day the first day in the current month is? For example, this month March 1st was a Wednesday, so it should return a 3 for Wednesday.</p>
  
  <p>I tried using this <code>date("w", "Y-m-01")</code> but it just gives me the error </p>
  
  <pre><code>Warning: date() expects parameter 2 to be long, string given
  </code></pre>