Bug #800: strtok() function is don't work properly

From: Date: Wed, 30 Sep 1998 01:26:54 +0000
Subject: Bug #800: strtok() function is don't work properly
Groups: php.dev 
Request: Send a blank email to php-dev+get-1557@lists.php.net to get a copy of this message
From: hjy@wins21.com Operating system: windows 95/NT PHP version: 3.0.4 PHP Bug Type: Misbehaving function Bug description: strtok() function is don't work properly <? $string = "a b c d e f"; $tok = strtok($string, " "); while($tok) { printf("[%s]\n", $tok); $tok = strtok(" "); } ?> result is [a] if string is "a b c d e f", then result is correct, but string "a b c d e f" is not work. -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#1557) next »