Re: strtok bug
| From: | Teodor Cimpoesu | Date: | Wed, 04 Oct 2000 17:30:00 +0000 |
| Subject: | Re: strtok bug | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18631@lists.php.net to get a copy of this message | ||
Hi Florin!
On Wed, 04 Oct 2000, Florin Sanda wrote:
> Hi,
> I figured what was happening:
> when "hello, world" is tokened, after the "," is a null word which causes
> the while to stop.
> is there a way to find out if is the end of the string (something like
> "hasNext ?") ?
you can try preg_split().
-- teodor