error notice - valid code
| From: | Pablo Oliva | Date: | Tue, 01 Oct 2002 03:02:46 +0000 |
| Subject: | error notice - valid code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-118298@lists.php.net to get a copy of this message | ||
Notice: Use of undefined constant year - assumed 'year' in
c:\apache\htdocs\jotr\includes\globalFooter.php on line 3
<?php
$year = getdate();
$print_year = $year[year];
?>
Is this not valid code?