split
split($data
, separator
= None , maxsplit
= None )
: String
$data.split(
separator
= None , maxsplit
= None )
: String
Parameters
$data
String
separator
String
The separator to use to split the string. If not defined, the string is splitted on each character.
max_split
Integer
If defined and positive, the returned list contains maxsplit
elements PLUS a last element that contains the rest of the string.
See also
Examples
How to split a String on comas