title: How to get the day of the week in DateTime?
body: <p>How to get the day of the week in DateTime ?</p>
  
  <p>I can’t find the way to get the day of the week from a DateTime.
  It’s can be number or string, both are ok.</p>
  
  <pre><code>$today = new DateTime("today");
  echo $ today-&gt;//whatever to get Friday, Monday or 5, 0
  </code></pre>
  
  <p>How to get the day of the week in DateTime ?</p>
  
  <p>Edit:
  I am using DateTime, not date.</p>