Re: $GLOBALS problem
| From: | Andy Tawse | 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.