View Single Post
Old 01-28-2013, 04:05 AM   PM User | #1
korssane
Regular Coder

 
Join Date: Jun 2011
Posts: 148
Thanks: 18
Thanked 0 Times in 0 Posts
korssane is an unknown quantity at this point
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
korssane is offline   Reply With Quote