Posted by ZeldorBlat on 09/16/05 03:11
Oli is correct, although you can probably "cheat" with something like this: function array_is_simple(&$arr) { if(!is_array($arr)) return false; $keys = array_keys($arr); foreach($keys as $x) if(!is_numeric($x) || intval($x) != $x) return false; return true; }
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming