strtok()

It splits a string into smaller strings

Example

<?php
$tokenVal = strtok(“php html js”, ” “);
while ($tokenVal  != false) {
echo $tokenVal .” “;
$tokenVal =strtok(” “);
}
?>

Output

php html js