I know there are other questions on this but none seem to work with arrays. I've been going at this for awhile now and I think I'm really overcomplicating things.
Lets say we are taking the following address: http://example.com/?i[]=22&i[]=100&j=a
I want to create a function that I could run similar to this:
getParameter('i');
Which would return [22,100]
Or I could run:
getParameter('j');
Which would return a string value of 'a'.