tags:

views:

300

answers:

4

2009 this year, 2010 next year.

+10  A: 

You can use the date function to extract a part of a date:

$year = date("Y"); // get the year part of the current date
$nextYear = $year + 1;

Run the snippet here.

CMS
A: 

Use getdate() function

Chathuranga Chandrasekara
+11  A: 

Look at the functions date() and strtotime():

echo date('Y');
echo date('Y', strtotime('+1 year'));
MathieuK
A: 

...and strftime('%Y') does it too