"; $President = strtok(";"); } echo "

If you include a semi-colon with a space after it, the above output will look like this.

\n"; echo "

This is because the the strtok () function will separate the tokens by semi-colons and by empty strings

"; $Presidents = "George Washington;John Adams;Thomas Jefferson;James Madison;James Monroe"; $President = strtok($Presidents,"; "); while ($President != NULL) { echo "$President
"; $President = strtok("; "); } ?>