这似乎非常不合逻辑,但我正在网上商店工作,我正在尝试使用 IP.Nexus API 获取包/项目显示名称(不重要)。
这是发票脚本返回的数组的一部分:
invoice Object
(
[data:invoice:private] => Array
(
[i_status] => pend
[i_title] => BETA Tag, ALPHA Tag
[i_member] => 1
[i_items] => Array
(
[0] => Array
(
[act] => new
[app] => nexus
[type] => product
[cost] => 0
[tax] => 0
[renew_term] => 0
[renew_units] =>
[renew_cost] => 0
[quantity] => 1
[physical] =>
[shipping] => Array
(
)
[subscription] =>
[weight] => 0
[itemName] => BETA Tag
当然,要抢itemName
,我会使用,
$invoice['i_items'][0]['itemName']
尽管出于某种奇怪的原因,这不起作用。我错过了什么吗?