gpt4 book ai didi

php - 在php中获取数组值

转载 作者:行者123 更新时间:2023-12-02 18:19:28 24 4
gpt4 key购买 nike

这是我想要的 mc_gross 值的数组。请帮忙

Array
(
[id] => 5
[txn_id] => 1fadfa1sfsa2
[log] => Array
(
[mc_gross] => 298.44
[invoice] => 0856545471323
[protection_eligibility] => Eligible
[address_status] => confirmed
[item_number1] => 12299
[payer_id] => UTU3f7TLQ6DLX4
[tax] => 0.00
[address_street] => 1 Main St
[payment_date] => 02:10:29 May 28, 2015 PDT
[payment_status] => Completed
[charset] => windows-1252
[address_zip] => 95131
[mc_shipping] => 0.00
[mc_handling] => 0.00
[first_name] =>Rohit
[mc_fee] => 8.95
[address_country_code] => US
[address_name] => Rohit
[notify_version] => 3.8
[custom] =>
[payer_status] => verified
[business] => <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1c6f697272655c7b717d7570327f7371" rel="noreferrer noopener nofollow">[email protected]</a>
[address_country] => United States
[num_cart_items] => 1
[mc_handling1] => 0.00
[address_city] => San Jose
[verify_sign] => AHr7LP.QXtufNfq97cbEdHHkqfNkJAtdXVkTwL.GBwGZwJBQ5GAJaqaXx
[payer_email] => <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="51233e39382511393e253c30383d7f323e3c" rel="noreferrer noopener nofollow">[email protected]</a>
[mc_shipping1] => 0.00
[tax1] => 0.00
[txn_id] => 1FV62057CK3146235
[payment_type] => instant
[last_name] => Vishwakarma
[address_state] => CA
[item_name1] => Centro Yas Island Rotana - Demo
[receiver_email] => <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7a090f1414033a1d171b131654191517" rel="noreferrer noopener nofollow">[email protected]</a>
[payment_fee] => 8.95
[quantity1] => 1
[receiver_id] => 6Y6GRJS8NA8JE
[txn_type] => cart
[mc_gross_1] => 298.44
[mc_currency] => USD
[residence_country] => US
[test_ipn] => 1
[transaction_subject] =>
[payment_gross] => 298.44
[ipn_track_id] => 8656eb7f3009dd4
)

[posted_date] => 2015-05-28 09:10:34
)

最佳答案

你可以简单地得到它

echo $array_name['log']['mc_gross'];

关于php - 在php中获取数组值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30521876/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com