|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-01 15:57 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 04:00:01 2025 UTC |
<? //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