note 24105 added to language.types.array
| From: | php-general at lists dot php dot net | Date: | Tue, 06 Aug 2002 21:09:34 +0000 |
| Subject: | note 24105 added to language.types.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34426@lists.php.net to get a copy of this message | ||
Whew. Using $GLOBALS causes arrays to not be registered as arrays (apparently).
function getSomeDBStuff() {
$GLOBALS["arrName[0]"]=mysql_function_here();
}
It looks like this refers to a variable named "arrName[0]" rather than "element zero
of array arrName." Or maybe this is a lesson in variable declaration.
--
http://www.php.net/manual/en/language.types.array.php
http://master.php.net/manage/user-notes.php?action=edit+24105
http://master.php.net/manage/user-notes.php?action=delete+24105
http://master.php.net/manage/user-notes.php?action=reject+24105