PHP strtok() Function

PHP String Reference : Split string one by one

Definition and Usage

The strtok() function splits a string into smaller strings (tokens).

Syntax

strtok(string,split)

Parameter Values

Parameter Description
string Required. Specifies the string to split
split Required. Specifies one or more split characters

Technical Details

Return Value: Returns a string token
PHP Version: 4+

❮ PHP String Reference