title: Get values from URL as array. JInput
body: <p>How can I get string values from URL and save them as array, right now URL looks like this <code>somename[]=xxxxxxxxx&amp;somename[]=zzzzzzzzz&amp;somename[]=zsdasd</code> </p>
  
  <pre><code>$jinput = JFactory::getApplication()-&gt;input;
  $nameArray = $jinput-&gt;get('somename');
  </code></pre>
  
  <p>If I var_dump <code>$nameArray</code> I get this <code>Array</code> and I var_dump <code>$jinput</code> I get this: </p>
  
  <pre><code>[data:protected] =&gt; Array
      (
          [somename] =&gt; Array
              (
              [0] =&gt; xxxxxxxxx
              [1] =&gt; zzzzzzzzz
              [2] =&gt; zsdasd
          )
  
      [option] =&gt; com_content
      [view] =&gt; featured
      [Itemid] =&gt; 101
  )
  </code></pre>
  
  <p>I want to echo <code>$nameArray</code> like <code>$nameArray[0]</code> and get results <code>"xxxxxxxxxx"</code> but now i get <code>Array</code> instead. </p>