convert std object class to comma seperated string

Posted by Kwaasi Djin on Stack Overflow See other posts from Stack Overflow or by Kwaasi Djin
Published on 2013-07-03T16:35:36Z Indexed on 2013/07/03 17:05 UTC
Read the original article Hit count: 158

Filed under:
|

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 $ids = (15761916,30144785,382747195,19399719).

I imagine using a for loop and using phps implode but i'm not sure how to go about it.

stdClass Object
(
  [ids] => Array
    (
        [0] => 15761916
        [1] => 30144785
        [2] => 382747195
        [3] => 19399719

    )

  [next_cursor] => 0
  [next_cursor_str] => 0
  [previous_cursor] => 0
  [previous_cursor_str] => 0
) 

© Stack Overflow or respective owner

Related posts about php

Related posts about stdclass