If I have a string separated by a special character like
"string1;string2;string3;string4" etc.
what is the easiest way to separate it into an array of strings so that I would have
string str[4];
and str[0] == "string1", str[1] == "string2" etc.
?
Printable View
If I have a string separated by a special character like
"string1;string2;string3;string4" etc.
what is the easiest way to separate it into an array of strings so that I would have
string str[4];
and str[0] == "string1", str[1] == "string2" etc.
?
this?
PHP Code:string s="string1;string2;string3";
string[] ss=s.Split(';');