我有一个如下所示的数组
stdClass Object
(
[1] => stdClass Object
(
[title] =>
[description] =>
)
)
如何在php中获取描述字段
答案 0 :(得分:0)
foreach($parentObject as $childObject){
echo $childObject->description;
//or $childObject['description'] if childObject is array
}