24
rated 0 times
[
30]
[
6]
/ answers: 1 / hits: 15744
/ 8 Years ago, thu, may 19, 2016, 12:00:00
Let's say I have a variable users
that contains the following string of text where each user is separated by a semicolon and each attribute of each users is separated by a comma:
Bob,1234,[email protected];Mark,5678,[email protected]
How would I split this into a multidimensional array variable userArray
that looks like this:
[
[Bob,1234,[email protected]],
[Mark,5678,[email protected]]
]
using JavaScript?
More From » arrays