join array values in php
<p>im having a array</p>

<pre><code>array
  0 =&gt; 
    array
      'cid' =&gt; string '18427' (length=5)
  1 =&gt; 
    array
      'cid' =&gt; string '17004' (length=5)
  2 =&gt; 
    array
      'cid' =&gt; string '19331' (length=5)
</code></pre>

<p>im trying to join the values so i can get one string as below</p>

<pre><code>18427,17004,19331
</code></pre>

<p>i tried the implode feature but i get the below error</p>

<pre><code>A PHP Error was encountered

Severity: Notice

Message: Array to string conversion

Filename: controllers/action.php

Line Number: 210
</code></pre>

<p>and the output is</p>

<pre><code>string 'Array,Array,Array' 
</code></pre>

<p>how can join only the value which are in <code>cid</code>?</p>
