Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 718 Bytes

File metadata and controls

35 lines (28 loc) · 718 Bytes

SplitString()

Important

Deprecated in 5.0.

Replaced with method split() of the string instance.

SplitString(string, separator): <<class-array,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"]