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