#3893 [Opn->]: strtok can't tok \t\t (2 tabs)
| From: | hholzgra@php.net | Date: | Tue, 01 Oct 2002 20:57:38 +0000 |
| Subject: | #3893 [Opn->]: strtok can't tok \t\t (2 tabs) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21161@lists.php.net to get a copy of this message | ||
ID: 3893
Updated by: hholzgra@php.net
Reported By: ttj@mark.ee.nctu.edu.tw
-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] ttj@mark.ee.nctu.edu.tw
<?
//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