Re: $GLOBALS problem

From: Date: Tue, 06 Aug 2002 13:45:10 +0000
Subject: Re: $GLOBALS problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-111371@lists.php.net to get a copy of this message
$journal_month = array("", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); .. function journal_convertDate($date){ $months = $GLOBALS["journal_month"]; ... } and the error message I get: Notice: Undefined index: journal_month in c:\andyt\inc\modules\Journal.php on line 375 When i use function journal_convertDate($date){ global $journal_month; it works.

« previous php.general (#111371) next »