如何从对象中提取数据(Zend_Db_Table_Rowset)
How to extract data from object(Zend_Db_Table_Rowset)
我有那个对象(Zend_Db_Table_Rowset)
object(Zend_Db_Table_Rowset)#183 (10) { ["_data":protected]=> array(1) { [0]=> array(18) {
["panel_id"]=> string(2) "37" ["group_id"]=> string(2) "19" ["panel_language"]=> string(2) "en"
["panel_name"]=> string(24) "IRAQI NATIONAL COMPANIES" ["panel_heading"]=> string(24) "IRAQI
NATIONAL COMPANIES" ["panel_content"]=> string(404) "
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus turpis velit, egestas a venenatis
at,pharetra at est. Suspendisse sagittis dapibus congue. Maecenas hendrerit, ipsum quis iaculis
dignissim, leo enim varius diam,
iaculis pretium magna diam non velit. Etiam congue nisl sed quam lobortis ultricies. Vestibulum
ipsum tellus, fermentum vel
tempor eu, blandit
我想得到 panel_heading, panel_content
我正在尝试这样做
$panels->panel_heading;
$panels->panel_content;
我收到通知:
Notice: Undefined property: Zend_Db_Table_Rowset::$panel_heading
有没有简单的方法来获取数据??
使用下面的代码:
foreach($panels as $panel)
echo $panel->panel_content
我有那个对象(Zend_Db_Table_Rowset)
object(Zend_Db_Table_Rowset)#183 (10) { ["_data":protected]=> array(1) { [0]=> array(18) {
["panel_id"]=> string(2) "37" ["group_id"]=> string(2) "19" ["panel_language"]=> string(2) "en"
["panel_name"]=> string(24) "IRAQI NATIONAL COMPANIES" ["panel_heading"]=> string(24) "IRAQI
NATIONAL COMPANIES" ["panel_content"]=> string(404) "
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus turpis velit, egestas a venenatis
at,pharetra at est. Suspendisse sagittis dapibus congue. Maecenas hendrerit, ipsum quis iaculis
dignissim, leo enim varius diam,
iaculis pretium magna diam non velit. Etiam congue nisl sed quam lobortis ultricies. Vestibulum
ipsum tellus, fermentum vel
tempor eu, blandit
我想得到 panel_heading, panel_content
我正在尝试这样做
$panels->panel_heading;
$panels->panel_content;
我收到通知:
Notice: Undefined property: Zend_Db_Table_Rowset::$panel_heading
有没有简单的方法来获取数据??
使用下面的代码:
foreach($panels as $panel)
echo $panel->panel_content