PHP strtok() May 23, 2012 Pramod T P 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