I *think* it's because you don't have an { at the beginning of the while()
loop....
<?
$name="tony";
$token=strtok($name, " ");
//echo $token."<br>";
while ($token!="")
{
$token=strtok(" ");
echo $token."<br>";
}
?>
Or, use the example in the manual as a guide:
<?
$string = "tony";
$tok = strtok($string,"");
while ($tok)
{
echo "{$tok}<br>";
$tok = strtok("");
}
?>
Justin
on 11/06/02 1:58 PM, Anthony Ritter ([EMAIL PROTECTED])
wrote:
> Thank you.
> The output is
>
> t
> o
> n
> y
>
> One thing...the server seem to keep running after the output to the browser
> like it's going through an indefinate loop.
>
> Any throughts?
> TR
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php