I am new to PHP and I have a question about how to respond to a fiscal year.
For the calendar year echo, I use:
<?php echo date("y"); ?>
My fiscal year begins on July 1 of the previous calendar year and ends on June 30, and I want to repeat the fiscal year.
I do not know how to do that. I have been looking for answers to this problem, but I cannot find an easy solution for me.
Expected Result
If this happens in June 2015, I want to print 2015 as the year, and then print 2016 , starting on the first day of the next month.
source share