title: How to get value post array in codeigniter?
body: <p>How to get value post array in codeigniter?
  I have problem when I get value post array and echo the value. How to show post value when submit?
  here the error message:</p>
  
  <pre><code>A PHP Error was encountered
  
  Severity: Notice
  
  Message: Uninitialized string offset: 0
  
  Filename: controllers/blablabla
  </code></pre>
  
  <p>view html:</p>
  
  <pre><code>&lt;?php $i=0; foreach ($doc as $row) { ?&gt;
  &lt;label&gt;
  &lt;input name="size[&lt;?php echo $i; ?&gt;]" type="checkbox" value="&lt;?php echo $row['doc']; ?&gt;"&gt;&amp;nbsp;&amp;nbsp;&lt;?php echo $row['doc']; ?&gt;
  &lt;/label&gt;
  &lt;?php $i++; } ?&gt;
  </code></pre>
  
  <p>controller :</p>
  
  <pre><code>$size = $this-&gt;input-&gt;post('size');
  for ($i=0; $i&lt;count($doc); $i++) 
  {
     echo $size[$i];
  }
  </code></pre>