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