title: Get comma seperated values from PHP array
body: <p>Do we have any array function in PHP to get this:</p>
  
  <pre><code>// get all the user ids as comma seprated.
          $users = array();
          foreach($view as $result)
          {       
              $users[] = $result-&gt;uid;            
          }
          $uid = implode(',', $users);
  </code></pre>
  
  <p>Example: </p>
  
  <pre><code>$array[0] = array("size" =&gt; "XL", "color" =&gt; "gold");
  $array[1] = array("size" =&gt; "XLL", "color" =&gt; "siver");
  $array[2] = array("size" =&gt; "M", "color" =&gt; "purple");
  
  I need 
  $color = "gold,silver,purple";
  </code></pre>
  
  <p>Thanks in Advance for your help.</p>