【发布时间】:2021-09-01 05:45:59
【问题描述】:
我一直在尝试学习 PHP 数组,我已经掌握了基本但在这方面遇到了困难。
我正在尝试通过调用我想要的键来获取键“pdfUrl”的值。
任何帮助将不胜感激。
Array
(
[0] => Clearbooks_Soap_1_0_Invoice Object
(
[items] => Array
(
[0] => Clearbooks_Soap_1_0_Item Object
(
[description] => Line Item #1
[unitPrice] => 24.99
[vat] => 5
[quantity] => 1
[type] => 1001001
[vatRate] => 0.2
)
)
[description] => API Test Invoice
[entityId] => 16
[invoice_id] => 209
[invoice_prefix] => INV
[invoiceNumber] => 204
[reference] =>
[dateCreated] => 2012-10-19 00:00:00
[dateDue] => 2012-11-16 00:00:00
[dateAccrual] => 2012-10-19 00:00:00
[creditTerms] => 30
[bankPaymentId] => 0
[project] => 0
[external_id] =>
[status] => approved
[pdfUrl] => https://secure.clearbooks.co.uk/accounting/sales/invoice_html/?source=statement&type=invoice&c=2&auth=-lHLOCMD8mOPS5qyEjiw2g
[themeId] => 0
[type] => S
[vatTreatment] =>
[multicurrency] => 0
[gross] => 29.99
[net] => 24.99
[vat] => 5
[paid] => 0
[balance] => 29.99
[foreignCurrencyBalance] => 0
)
)
【问题讨论】:
-
请告诉我们您的尝试。