title: Easy way to get day number of current quarter?
body: <p>PHP provides ways to get the number of the current day of the month (date('j')) as well as the number of the current day of the year (date('z')). Is there a way to get the number of the current day of the current quarter?</p>
  
  <p>So right now, August 5, it is day 36 of the third quarter.</p>
  
  <p>If there is no standard way of calculating this, does anyone have a (prefereably PHP-based) algorithm handy?</p>