Re: error notice - valid code
| From: | Tom Rogers | Date: | Tue, 01 Oct 2002 03:34:54 +0000 |
| Subject: | Re: error notice - valid code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118307@lists.php.net to get a copy of this message | ||
Hi,
Tuesday, October 1, 2002, 1:02:46 PM, you wrote:
PO> Notice: Use of undefined constant year - assumed 'year' in
PO> c:\apache\htdocs\jotr\includes\globalFooter.php on line 3
PO> <?php
PO> $year = getdate();
PO> $print_year = $year[year];
?>>
PO> Is this not valid code?
No
It should be
$print_year = $year['year']
--
regards,
Tom