Important
|
Deprecated in 5.0. Replaced with method split() of the string instance. |
SplitString(string, separator) => Array
Split string into array of strings at given separator.
string |
String |
String to split. |
separator |
String |
Separator character. If supplied string is longer than 1 character, it’s first character will be used as separator. |
Return
Array with strings
Example
SplitString("a;b;c;d", ";"); //Will be splited to ["a", "b", "c", "d"] SplitString("abcd", ";"); //Will be splited to ["abcd"]