[EMAIL PROTECTED] wrote:
> > There are only assotiative arrays in PHP.
>
> PHP has associative and numeric (normal) arrays. But is_array() says
> only if it is an array or not. The distinction could only be made if
> you look at keys. Keys can be integers or strings. I hope this was
> correct, if not, Andrei can correct me :)

If I'm not completely mistaken, PHP has only associative arrays, 
which can act more or less like "normal" indexed arrays when numbers 
are used as keys, which is the default when no keys are set explicitly, 
like in:

$arr = array('a', 'b', 'c');
which equals
$arr = array(0 => 'a', 1 => 'b', 2 => 'c');

But they are still associative, afaik.
However, I agree, the only way to make a distinction is to look if the 
keys are integers.

regards
Wagner

-- 
Assumption is the mother of all fuck-ups.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to