TOC PREV NEXT INDEX

str_array function

Synopsis

str_array(string_object, delimiter)

str_array returns an array of strings that are obtained by splitting up string_object into pieces delimited by the first character of the string value of the delimiter argument.

For example:

-> string a = "One;Two;Three";
-> string b[3] = str_array(a, ";");
-> $print b
string b[3] = {"One","Two","Three"};


TOC PREV NEXT INDEX