[PHP-DEV] Bug #1282 Updated: strtok ignores zero's From: Bug Database (php-dev <email protected>)
Date: 04/01/99

ID: 1282
Updated by: rasmus
Reported By: mf <email protected>
Status: Closed
Bug Type: Misbehaving function
Assigned To:
Comments:

No bug here. You are effectively doing a while(0) in that loop when $tok is 0. What you are really interested in is when you have a zero-length string. So change your while loop to something like: while(strlen($tok))

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

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>