Accessing @attribute from php object
<p>I'm trying to access values from a PHP object returned from an API. I am trying to get the 'total' atribute.</p>

<pre><code>stdClass Object
(
    [@attributes] =&gt; stdClass Object
        (
            [status] =&gt; ok
        )

    [invoices] =&gt; stdClass Object
        (
            [@attributes] =&gt; stdClass Object
                (
                    [page] =&gt; 1
                    [per_page] =&gt; 25
                    [pages] =&gt; 1
                    [total] =&gt; 5
                )
</code></pre>

<p>My returned object is stored in a variable called $list.</p>

<pre><code>$list-&gt;invoices-&gt;attributes-&gt;total
</code></pre>

<p>I'm trying to echo / print_r that, but getting nothing?</p>

<p>Any help is appreciated!</p>
