【发布时间】:2013-07-03 16:35:36
【问题描述】:
我有一个来自 twitter 的 std 类对象,我想获取 ids 数组值并将它们放在一个 php 变量 $ids 中 $ids = (15761916,30144785,382747195,19399719)。
我想象使用 for 循环并使用 phps implode,但我不知道该怎么做。
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
)
【问题讨论】:
-
你想要的结果是什么?
-
逗号分隔的字符串,如标题。
-
$ids = (15761916,30144785,382747195,19399719)