title: Shortest possible query string for a numerically indexed array in PHP
body: <p>I’m looking for the most concise URL rather than the shortest PHP code. I don’t want my users to be scared by the hideous URLs that PHP creates when encoding arrays.</p>
  
  <p>PHP will do a lot of repetition in query string if you just stuff an array (<code>$fn</code>) through <a href="http://php.net/manual/en/function.http-build-query.php" rel="nofollow"><code>http_build_query</code></a>:</p>
  
  <pre><code>$fs = array(5, 12, 99);
  $url = "http://$_SERVER[HTTP_HOST]/?" .
      http_build_query(array('c' =&gt; 'asdf', 'fs' =&gt; $fs));
  </code></pre>
  
  <p>The resulting <code>$url</code> is</p>
  
  <pre class="lang-none prettyprint-override"><code>http://example.com/?c=asdf&amp;fs[0]=5&amp;fs[1]=12&amp;fs[3]=99
  </code></pre>
  
  <p>How do I get it down to a minimum (using PHP or methods easily implemented in PHP)?</p>