ID: 3893
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Won\'t fix
Bug Type: Misbehaving function
Operating System: FreeBSD 3.3R
PHP Version: 3.0.15
New Comment:
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.
works in php 4
Previous Comments:
------------------------------------------------------------------------
[2000-03-22 08:39:47] [EMAIL PROTECTED]
<?
//if the following words seperated by 2 continuous TAB char
$line="This is a test";
$token=strtok($line,"\t\t");
while($token){
echo "$token<br>";
$token=strtok("\t\t");
}
?>
expecting result should be:
This
is
a
test
but it's not.
Though there is other solution to this problem still,
str_replace \t\t -> \t
or using explode
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=3893&edit=1