note 5678 deleted from function.strtok by nlopess
| From: | nlopess@php.net | Date: | Sun, 08 May 2005 07:43:17 +0000 |
| Subject: | note 5678 deleted from function.strtok by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-89102@lists.php.net to get a copy of this message | ||
Note Submitter: domidahl at gmx dot net
----
If you tokenize a string containing "0" use strlen($tok) as breaking-condition of the
loop.
This works because strval(false) is "".