title: string changes after posting array data in php ci
body: <p>i wanna post an array data in php codeigniter.
  this is a part of my code in view</p>
  
  <pre><code> &lt;input type="hidden" name="category[&lt;?php echo $i; ?&gt;]"
    value="&lt;?php echo $info['category']; ?&gt;  "&gt;
   &lt;?php var_dump($info['category']);?&gt;
  </code></pre>
  
  <p>the result of above var_dump shows the correct string.
  for example: </p>
  
  <blockquote>
    <p>string(7) "parquet"</p>
  </blockquote>
  
  <p>but when i post the data to controller string changes and var_dump() result is:</p>
  
  <blockquote>
    <p>string(9) "parquet "</p>
  </blockquote>
  
  <p>my question is what's happening when i post data and how can i fix this issue.</p>