0
我正在嘗試訪問數組內的值。通過使用數組中的鍵訪問值
樣本數組$網關
[cheque] => WC_Gateway_Cheque Object
(
[order_button_text] =>
[enabled] => yes
[title] => Check payments
[description] => Please send a check to Store Name, Store Street, Store Town, Store State/County, Store Postcode.
[chosen] =>
)
foreach($gateways as $key=>$value){
if($key->title == 'xyz'){
unset($gateways[$key]);
break;
}
}
我如何可以訪問陣列內的[標題]價值?我想嘗試$ key-> title。
是的,謝謝:) – Himani