massejferguson massejferguson 08.01.2023, 18:50:32 0 + #phpO co chodzi z tym while ($token !== false)w tym:php$string = "Hello world. Beautiful day today."; $token = strtok($string, " "); while ($token !== false) { echo "$token<br"; $token = strtok(" "); }?>
januzi januzi 08.01.2023, 18:54:20 0 + @massejferguson: https://www.php.net/manual/en/function.strtok.php
sadge sadge 08.01.2023, 18:54:43 1 + @massejferguson: pętla działa póki token nie jest pustym stringiem
O co chodzi z tym
w tym:
php
$string = "Hello world. Beautiful day today.";
$token = strtok($string, " ");
while ($token !== false)
{
echo "$token<br";
$token = strtok(" ");
}
?>