我如何从这个数组(stdClass)php中获取数据?
Array
(
[0] => stdClass Object
(
[id] => 4
[programs] => FireFox
[version] => 4.00
[type] => Browsers
[description] => fdmkfdsf,sdfdsfdsfdsf
dfdsf
sd
f
dsf
ds
f
[views] => 2
[serial] => 434343-343434-3434-c
)
)
当我尝试使用 foreach 获取它时,我得到了那个错误
#
A PHP Error was encountered
Severity: 4096
Message: Object of class stdClass could not be converted to string
Filename: views/results.php
Line Number: 2
我怎样才能得到程序的数据(例如 FireFox)?