split
Splits a string into an array of substrings
Syntax
split(sep)
Returns
returns (array) of (string)s
Parameters
- sep (string)
- the sepperator string
Usage
var value = "how-are-you";
value = value.split("-");
echo( objectToString(value) );
/* This will return:
[
"how",
"are",
"you"
]
*/
var path = "/path/to/a/folder/";
path = path.split("/");
echo( objectToString(path) );
/* this will return:
[
"",
"path",
"to",
"a",
"folder",
""
]
*/