title: How to get an array the correct way in Joomla (2.5/3.x)
body: <pre><code>&lt;form&gt;
  &lt;input type="checkbox" name="item[]" value="1" /&gt;
  &lt;input type="checkbox" name="item[]" value="2" /&gt;
  &lt;input type="checkbox" name="item[]" value="3" /&gt;
  &lt;/form&gt;
  &lt;?php
  $app = JFactory::getApplication();
  $items = $_POST['type']; // This works but is not Joomla wise...
  
  $items = $app-&gt;input-&gt;getArray(array('type_ids')); // Tried multiple ways but can't get it to work.
  ?&gt;
  </code></pre>
  
  <p>What should be the correct way to load all form items into an array $items?</p>