title: Increment variable after each 3 hours in PHP
body: <p>I need some idea from you guys. I'm thinking about creating a counter which will start from 17 and after each 3 hours it's gonna increase by 1. Then After each weeks Tuesday 12:00am the counter is again gonna reset to 17 and follow the same approach.</p>
  
  <p>I'm actually gonna create a wordpress shortcode with it, but I know how to do that so, doesn't looking help for that.</p>
  
  <p>The help I'm looking for actually is how I'm gonna achieve on PHP. Because I thought it cannot be done normally with <code>for</code> loop. So, what I'm asking for is actually some tips and idea from you geeks that how should I proceed with the code and may be what different functions I may use to get this result.</p>
  
  <p>Any idea guys?</p>