RE: [PHP] Re: Associative vs normal arrays
| From: | Mark Charette | Date: | Sun, 02 Feb 2003 20:39:16 +0000 |
| Subject: | RE: [PHP] Re: Associative vs normal arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134045@lists.php.net to get a copy of this message | ||
All arrays in PHP are associative; we sometimes use integers to refer to
them, but the order of the array internally is not necessarily the same as
the integers; indeed, any array can have "holes" in them. So the question is
moot.
"There are no different indexed and associative array types in PHP, there is
only one array type, which can both contain integer and string indices." -
http://www.php.net/manual/en/language.types.array.php
Mark C.
> > Is there a way to determine if an array is associative or not? Maybe =
> > something similar to the is_array() function ??
>