This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

SplitString()

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.

Table 1. Parameters

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

SplitString("a;b;c;d", ";"); //Will be splited to ["a", "b", "c", "d"]
SplitString("abcd", ";"); //Will be splited to ["abcd"]