title: Changing the start day of week from 'monday' to 'tuesday' in Php
body: <p>Hi friends i need to get the week count .</p>
  
  <p>for ex 1,2,3 .... 52 based on the current year .</p>
  
  <p>In php week starts from Monday or Sunday by default</p>
  
  <p>Is there anyway to set 'Tuesday' has default starting day .</p>
  
  <p>my code is ...</p>
  
  <pre><code>echo "current week of 2012 this year is ..". $weekNumber = date("W");
  </code></pre>
  
  <p>output for exapmle 16 . whereas correct should be 15 .</p>
  
  <p>because i need the week starting from tuesday not monday , can anyone tell me how to do it .</p>
  
  <p>since there is very less documentation on it will help others in future if answer is found :) </p>
  
  <p>your help and time will be appreciated . or please suggest me a way in comments then :)</p>