我具有存儲在無功$category
它具有以下性質的PHP對象獲取0(零)(轉儲與print_r()
):從正確定義PHP對象屬性
jstandCategory Object
(
[category_id] => 1
[category_image] =>
[category_parent_id] => 0
[category_publish] => 1
[category_ordertype] => 1
[category_template] => default
[category_ordering] => 1
[category_add_date] => 2013-03-18 22:10:45
[cars_page] => 6
[cars_row] => 1
[name_en-GB] => Used Cars
[alias_en-GB] => used-cars
[short_description_en-GB] =>
[description_en-GB] => <table>... some html code ...</table>
)
然而,當我嘗試轉儲name_en-GB
屬性使用print_r($category->name_en-GB);
我得到0
。我究竟做錯了什麼? name_en-GB
以上的物業被轉儲得很好。
是的,現在我知道這一點,謝謝! – 2013-03-21 23:50:16