title: How to encode a JavaScript array as PHP-compatible "array arguments" in a query string?
body: <p>I have a jQuery array and I want to use it in an AJAX call with my PHP script, can anyone help me do this?</p>
  
  <pre><code>var things = {
    "foo": ["bar", "baz"],
    "bar": 1234
  };
  
  var output = "?foo[]=bar&amp;foo[]=baz&amp;bar=1234";
  </code></pre>
  
  <p>Thanks!!</p>