title: convert std object class to comma seperated string
body: <p>I have an std class object from twitter and i would like to take the ids array values and put them in a php variable $ids where <code>$ids = (15761916,30144785,382747195,19399719)</code>.</p>
  
  <p>I imagine using a for loop and using phps implode but i'm not sure how to go about it.</p>
  
  <pre><code>stdClass Object
  (
    [ids] =&gt; Array
      (
          [0] =&gt; 15761916
          [1] =&gt; 30144785
          [2] =&gt; 382747195
          [3] =&gt; 19399719
  
      )
  
    [next_cursor] =&gt; 0
    [next_cursor_str] =&gt; 0
    [previous_cursor] =&gt; 0
    [previous_cursor_str] =&gt; 0
  ) 
  </code></pre>