Re: strtok bug

From: 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

« previous php.general (#18631) next »