在print_r語句中得到以下數組結構後:
它來自Magento。任何人都可以請建議我如何從這個陣列獲得customoptions_qty?
如何從php數組中獲取值
Mage_Catalog_Model_Product_Option_Value Object
(
[_origData:protected] => Array
(
[option_type_id] => 13
[option_id] => 5
[sku] =>
[sort_order] => 0
[customoptions_qty] => 55
[default] => 0
[in_group_id] => 262142
[dependent_ids] => 263141
[weight] => 0.0000
[default_title] => Buy 3 Get 1
[store_title] =>
[title] => Buy 3 Get 1
[default_option_type_price_id] => 13
[default_price] => 300.0000
[default_price_type] => percent
[default_special_price] =>
[default_special_comment] =>
[store_option_type_price_id] =>
[store_price] =>
[store_price_type] =>
[store_special_price] =>
[store_special_comment] =>
[option_type_price_id] => 13
[price] => 300.0000
[price_type] => percent
[special_price] =>
[special_comment] =>
)
)
你好,歡迎來到SO。請閱讀[如何提出一個好問題](http://stackoverflow.com/help/how-to-ask)。 – jurgemaister 2014-10-29 14:33:29