Global Arrays ?
| From: | Jason Rennie | Date: | Fri, 21 Dec 2001 00:41:42 +0000 |
| Subject: | Global Arrays ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78365@lists.php.net to get a copy of this message | ||
Hi all,
I've got an array in the global scope called $g_months which oddly enough
contains the names of the months.
Now when I try to import this into a function as
global $g_months;
it doesn't work. When php prints out the array as an option box I just
wind up with no options.
Any ideas why this is the case ? Am I doing something wrong ?
Jason
--
Hofstadter's Law : "It always takes longer than you expect, even when you
take Hofstadter's Law into account."