title: How to get the value of a key within an nested object array PHP
body: <p>I've been trying to learn PHP arrays, I have got the basic but struggling with this one.</p>
  <p>I'm looking to try and get the value of a key &quot;pdfUrl&quot; by calling the key I want.</p>
  <p>Any help would be greatly appreciated.</p>
  <pre><code>Array
  (
  [0] =&gt; Clearbooks_Soap_1_0_Invoice Object
      (
          [items] =&gt; Array
              (
                  [0] =&gt; Clearbooks_Soap_1_0_Item Object
                      (
                          [description] =&gt; Line Item #1
                          [unitPrice] =&gt; 24.99
                          [vat] =&gt; 5
                          [quantity] =&gt; 1
                          [type] =&gt; 1001001
                          [vatRate] =&gt; 0.2
                      )
  
              )
  
          [description] =&gt; API Test Invoice
          [entityId] =&gt; 16
          [invoice_id] =&gt; 209
          [invoice_prefix] =&gt; INV
          [invoiceNumber] =&gt; 204
          [reference] =&gt;
          [dateCreated] =&gt; 2012-10-19 00:00:00
          [dateDue] =&gt; 2012-11-16 00:00:00
          [dateAccrual] =&gt; 2012-10-19 00:00:00
          [creditTerms] =&gt; 30
          [bankPaymentId] =&gt; 0
          [project] =&gt; 0
          [external_id] =&gt;
          [status] =&gt; approved
          [pdfUrl] =&gt; https://secure.clearbooks.co.uk/accounting/sales/invoice_html/?source=statement&amp;type=invoice&amp;c=2&amp;auth=-lHLOCMD8mOPS5qyEjiw2g
          [themeId] =&gt; 0
          [type] =&gt; S
          [vatTreatment] =&gt;
          [multicurrency] =&gt; 0
          [gross] =&gt; 29.99
          [net] =&gt; 24.99
          [vat] =&gt; 5
          [paid] =&gt; 0
          [balance] =&gt; 29.99
          [foreignCurrencyBalance] =&gt; 0
      )
  
  )
  </code></pre>