Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 719 Bytes

splitstring.adoc

File metadata and controls

36 lines (29 loc) · 719 Bytes

SplitString()

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.

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

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