explode() is a PHP function that splits a string based on a delimiter, returning an array.
explode()
is a PHP function that splits a string based on a delimiter, returning an array.
array explode ( string $delimiter , string $string [, int $limit ] )
Example
$text = "a b c d";
print_r(explode(" ", $text));
gives:
Array ( [0] => a [1] => b [2] => c [3] => d )