php - add commas in the array
<p>i have following array, and i have tried to add comma with the following code but i am not getting values its shows "array" only..</p>

<p><strong>Array Value</strong></p>

<pre><code>Array ( [0] =&gt; Array ( [0] =&gt; 144 [category_id] =&gt; 144 ) [1] =&gt; Array ( [0] =&gt; 98
[category_id] =&gt; 98 ) [2] =&gt; Array ( [0] =&gt; 146 [category_id] =&gt; 146 ) [3] =&gt; Array ( 
[0] =&gt; 142 [category_id] =&gt; 142 ) )
</code></pre>

<p><strong>Tried code to display values with commas</strong></p>

<pre><code>$comma_separated = implode(",", $result_array);
echo $comma_separated;
</code></pre>

<p><strong>output i am getting</strong></p>

<pre><code>Array,Array,Array,Array
</code></pre>

<p>please check what i am getting wrong</p>
