title: Passing arrays as url parameter
body: <p>What is the best way that I can pass an array as a url parameter? I was thinking if this is possible: </p>
  
  <pre><code>$aValues = array();
  
  $url = 'http://www.example.com?aParam='.$aValues;
  </code></pre>
  
  <p>or how about this:</p>
  
  <pre><code>$url = 'http://www.example.com?aParam[]='.$aValues;
  </code></pre>
  
  <p>Ive read examples, but I find it messy:</p>
  
  <pre><code>$url = 'http://www.example.com?aParam[]=value1&amp;aParam[]=value2&amp;aParam[]=value3';
  </code></pre>