Just a quick note for this issue. If I remember correctly, PHP is working this way at least from PHP 3.0.x. $a[123] // integer index $a['123'] // integer index $a['123 abc'] // string index $a['123.123'] // string index
Automatic string to integer conversion only happened if index string has numeric chars. It seems some people are confused. isset($a[0][0]) became true if and only if $a is string. If there is a code broken by this behavior, it would be enough for add is_array() if (is_array($a) && isset($a[0][0])) I suppose. -- Yasuo Ohgaki yohg...@ohgaki.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php