PHP 4, PHP 5, PHP 7, PHP 8
strtok - Tokenize string
Strtok Online Tool
Code Examples

Example #1 strtok behavior on empty part found

Result: string(9) "something" bool(false)
PHP Version:

Example #2 The difference between strtok and explode

Result: ["aaa","bbb"] ["","aaa","","bbb",""]
PHP Version:

Example #3 strtok example

PHP Version:

Example #4 of strtok

PHP Version:

Function strtok:

Strings Functions

Most used PHP functions