|
Split a string into an 2 d array of substrings:
Hi Guys,
I want to split a string into a 2 d array of substrings like the following :
string = " id1,name1,id2,name2,id3,name3...."
array
element [0][0] = id1
element [0][1] = name1
element [1][0] = id2
element [1][1] = name2
...etc
i tried to tweak the JavaScript split() Method but no result.
Any help ?
thanks
|