dsux90368
2015-10-05 06:43
浏览 44
已采纳

如何从php中的嵌套对象获取数组?

I am getting this while print_r().

stdClass Object
(
    [0] => stdClass Object
        (
            [id] => 1
            [name] => Ramesh
            [cdate] => 2015-10-03 10:36:08
            [private] => 0
            [userid] => 1
            [subscriber_count] => 0
        )

    [result_code] => 1
    [result_message] => Success: Something is returned
    [result_output] => json
    [http_code] => 200
    [success] => 1
)

I have tried lot but no use. please help me

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • duanou9758 2015-10-05 06:47
    已采纳

    try to use get_object_vars() this may help.

    打赏 评论

相关推荐 更多相似问题