«« Next » « Previous
«« Next » « Previous

Link Details

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.
Link 70858 thumbnail

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.
  • 15
  • 1
  • 839
  • 205

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.