title: How to convert an array to a string in PHP?
body: <p>For an array like the one below; what would be the best way to get the array values and store them as a comma-separated string?</p>
  
  <pre><code>Array ( [0] =&gt; 33160,
          [1] =&gt; 33280,
          [2] =&gt; 33180,
          [3] =&gt; 33163,
          [4] =&gt; 33181,
          [5] =&gt; 33164,
          [6] =&gt; 33162,
          [7] =&gt; 33179,
          [8] =&gt; 33154,
          [9] =&gt; 33008,
          [10] =&gt; 33009,
          [11] =&gt; 33161,
          [12] =&gt; 33261,
          [13] =&gt; 33269,
          [14] =&gt; 33169,
          [15] =&gt; 33022,
          [16] =&gt; 33141,
          [17] =&gt; 33168,
          [18] =&gt; 33020,
          [19] =&gt; 33023,
          [20] =&gt; 33019,
          [21] =&gt; 33153,
          [22] =&gt; 33238,
          [23] =&gt; 33138,
          [24] =&gt; 33167,
          [25] =&gt; 33082,) 
  </code></pre>