PHP date; How to find the next year?

Viewed 46650

I want to get today's date + one year. How do I achieve this with PHP's date functions?

9 Answers

The shortest version:

echo (int)date('Y') + 1;

Best and easy solution... You can change month or year or day.

date('Y-m-d',strtotime("+1 day +2months +1 year"));

Below code also return next year from current date:

<?php echo date('Y', strtotime('+12 month'));>

Related