PHP String Token: Space – String Function

 
    <?
$token = strtok("open-source HTML-embedded server-side Web scripting"," ");
while($token){
  print($token . "<br />");
  $token = strtok(" ");
}?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.