note 9875 added to array
| From: | marat at writeme dot com | Date: | Wed, 29 Nov 2000 05:41:23 +0000 |
| Subject: | note 9875 added to array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8230@lists.php.net to get a copy of this message | ||
OK, is everyone ready for a stupid question?
Lets say I want to use a numeric index value for an array member, but the number I choose for the
first array member, is in the thousands. In better words:
$key = 4236 ;
$my_array[$key] = 'blah' ;
will instantiating this array member, cause the php scripting engine to automatically instantiate
members 0-4235 with 'null' values???
If yes, this would seem to be very ineffecient...
Thanx all,
MARAT
http://www.php.net/manual/function.array.php