Announcement
iPhone DZone: Fresh Links On Your iPhone by matt at Sat Jul 05 14:09:51 EDT 2008
Reading DZone on your iPhone just got a little bit easier. Visit http://dzone.com/iphone from your iPhone to try out our beta iPhone support. You can view stories, filter by tags, and login. We'd appreciate your feedback at feedback@dzone.com.
Stop waiting for the other guy to do it. Login and vote now.
By bloid
via ajax.dzone.com
Published: Mar 15 2008 / 13:24
Earlier today a friend of mine, Marc Grabanski, pinged me with a question: What's the optimal way, in JavaScript, to convert a query string like "foo=1&foo=2&foo=3&blah=a&blah=b" into one that looks like this: "foo=1,2,3&blah=a,b". He had already come up with a solution of his own and was curious as to if it could be improved upon.
SaveShareSend
Tags: javascript
Add your comment
Voters For This Link (15)
bloid
boyan
j2eecop
jmar777
davidwalsh
rick
dubness
aphpguy
nyuhuhuu
chrriis
unchqua
ikysil
trivoly
srinivasreddy
boocockp