Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我得到了一组看起来像这样的数据
{ [0]=> object(stdClass)#5 (19) { ["text"]=> string(39) "So true! :(" } object(stdClass)#5 (19) { ["text"]=> string(39) "Some other text"}
我试过了,但它没有返回任何数据
$content->{0}->text; $content->{1}->text;
如何获取这些数据?它没有返回任何
这些是数组中的对象,您可以像这样访问它们:
$content[0]->text