title: PHP end a financial year in june of every year
body: <p>I would like to do something of this sort in php, when the month reaches June 2016, I would like to echo 2016-17, but before that i echo 2015-16 What I have so far echos 2015-16 meaning it changes with the beginning of the year, but i would rather it does that in june onwards, </p>
  
  <pre><code>echo   date('Y') .'-'.date('y', strtotime('+1 year'));
  </code></pre>
  
  <p>Any suggestions</p>