explode() public static method (available since version 2.0.4)
Explodes string into array, optionally trims values and skips empty ones
public static array explode ( $string, $delimiter = ',', $trim = true, $skipEmpty = false ) | ||
---|---|---|
$string | string |
String to be exploded. |
$delimiter | string |
Delimiter. Default is ','. |
$trim | mixed |
Whether to trim each element. Can be:
|
$skipEmpty | boolean |
Whether to skip empty strings between delimiters. Default is false. |
Please login to continue.