|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-12-27 02:35 UTC] s371117 at student dot uq dot edu dot au
This code does not appear to work (it is almost a cut and paste from the manual with the token changed). From experimentation I think it is beacause the token is two characters long. I am not sure if this is a bug or a undocumented property of this function.
$string = "This is an example string";
$tok = strtok($string,"%s");
while ($tok) {
echo "Word=$tok<br>";
$tok = strtok("%s");
}
I am sorry I can't be sure of the version of PHP on this server. I only have ftp access.
Thanks for such a great product!
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
Please create a php file with the following content, the version number of PHP will appear in the output: <?php phpinfo(); ?> Let us know what version you are on. Sean