$str = "Hello World"; $tokens = explode(" ", $str); print_r($tokens);
Array ( [0] => Hello [1] => World )
$str = "apple,banana,orange"; $tokens = explode(",", $str); print_r($tokens);
Array ( [0] => apple [1] => banana [2] => orange )The `tokenize` function is a core PHP function and does not require any external package or library.