strtok()
strtok - Tokenize string
Syntax
string strtok (
string $str,
string $token,
string $token,
string $str,
string $token,
string $token)
Arguments
- str - The string being split up into smaller strings (tokens).
- token - The delimiter used when splitting up str.
- token
- str - The string being split up into smaller strings (tokens).
- token - The delimiter used when splitting up str.
- token
Description
strtok() splits a string ( str) into smaller strings (tokens), with each token being delimited by any character from token. That is, if you have a string like "This is an example string" you could tokenize this string into its individual words by using the space character as the token.
Version
PHP 4, 5
Return value
A string token.