title: Get total number of each day between two date in php
body: <p>If I give 2 dates, I need results as follow -</p>
  
  <pre><code>SUNDAY = 3 TIMES
  MONDAY = 3 TIMES
  TUESDAY = 4 TIMES
  WEDNESDAY = 4 TIMES
  THURSDAY = 4 TIMES
  FRIDAY  = 4 TIMES
  SATRUDAY = 4 TIMES
  </code></pre>
  
  <p>I am confused if this can be done via any function in mysql or I have to do it from php.
  I tried with various ways in mysql but could not get any success. I am trying it in php but the codes is somewhat getting lengthy. </p>