String token for string split : String Token « String « PHP






String token for string split


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








Related examples in the same category

1.Use more than one delimiter to split string
2.String token: space
3.String string token value
4.Dividing a String into Tokens with strtok()