No functions that I can think of but you can write one like this: $arrayType = 'numeric';
foreach($myArray as $key => $value) {
if(!is_numeric($key)) {
$arrayType = 'associative';
}
}
Also remember that an array can be both!
Larry
> Is there a way to determine if an array is associative or not? Maybe =
> something similar to the is_array() function ??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

