[PHP-DEV] Bug #800: strtok() function is don't work properly From: hjy <email protected>
Date: 09/29/98

From: hjy <email protected>
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 <email protected>
For help: php-dev-help <email protected>