[ create a new paste ] login | about

Link: http://codepad.org/qOx1TO95    [ raw code | output | fork ]

PHP, pasted on May 12:
1
2
3
4
5
6
7
8
9
10
<?php

$year = date('Y') - 1;
$month = date('n');

if($month > 8) $year++;

echo $year;

?>


Output:
1
2010


Create a new paste based on this one


Comments: