Explode — Split a string by string
Syntax:
array explode ( string $delimiter , string $string [, int $limit ] )
To remove empty elements after explode,
array_map('trim', explode(",", $myString));
Syntax:
array explode ( string $delimiter , string $string [, int $limit ] )
To remove empty elements after explode,
array_map('trim', explode(",", $myString));