我需要从嵌套在数组中的值中捕获变量,但我无法弄清楚指定该值位置的语法。
print_r($result_array) 输出以下数组...
我想捕捉“这个值在这里!” 在一个变量中。$var = $result_array['order'] /// 然后呢???
Array
(
[order] => Array
(
[line_items] => Array
(
[0] => Array
(
[catalog_object_id] => This value here!
[quantity] => 1
)
)
[fulfillments] => Array
(
[0] => Array
(
[state] => PROPOSED
[type] => PICKUP
[pickup_details] => Array
(
[is_curbside_pickup] => 1
[pickup_at] => 2020-05-20 05:09:02
[recipient] => Array
(
[display_name] => John
)
)
)
)
)
)
不负相思意