Date (Year) .. adding..
| From: | Jason Caldwell | Date: | Wed, 23 May 2001 04:19:52 +0000 |
| Subject: | Date (Year) .. adding.. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53978@lists.php.net to get a copy of this message | ||
I'm trying to figure out how to add to the year:
for($x=0; $x<20; $x++)
{
$year = date("Y" + $x);
print($year . "\n");
}
I've tried several variations on the above and cannot get the year to come
out.
Any suggestions?
Thanks
Jason