> Now, it seems that $keys['file'] == $keys[0], which makes sense why the > issets > return true. However... > if ('file') echo 'true'; > will print moo, therefore 'file' == 1, not 0. Why is this different when > using > it as a string offset? > IMO, using a string as a string offset, a fatal error should be raised.
It's cast to an integer. [EMAIL PROTECTED]:~$ php -r 'echo (int) "file" . "\n";' 0 [EMAIL PROTECTED]:~$ php -r 'echo (bool) "file" . "\n";' 1 S -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php