how to save multiple input fields value in mysql with codeigniter
<p>I have a form having 6 fields with same nameLike - feature[],</p>

<p>I want to save multiple input fields value into mysql 1 column in JSON format:</p>

<pre><code>&lt;form method="post" action="&lt;?php echo base_url();?&gt;product/save/"&gt;
&lt;input type="text" class="form-control" name="feature[]" placeholder="fetaure 1"&gt;
&lt;input type="text" class="form-control" name="feature[]" placeholder="fetaure 2"&gt;
&lt;input type="text" class="form-control" name="feature[]" placeholder="fetaure 3"&gt;
&lt;input type="text" class="form-control" name="feature[]" placeholder="fetaure 4"&gt;
&lt;?php ?&gt;
</code></pre>

<p>I have column feature in mysql table, i want to save input field value into feature column as json data. i am using codeigniter 3.</p>