[PHP-DEV] Bug #418 Updated: array function misbehaves if first element is a string containing a number From: Bug Database (php-dev <email protected>)
Date: 05/30/98

ID: 418
Updated by: zeev
Reported By: sam <email protected>
Status: Closed
Bug Type: Misbehaving function
Assigned To:
Comments:

You're expectations are wrong. "0" is false, thus your
loop will have no iterations at all, which is exactly
what should happen.
For reliable array traversal code, look at each() (at
the online documentation or at the php3 mailing list
archives).

Full Bug description available at: http://ca.php.net/bugs.php3?id=418