How to access object called _ (underscore) into a variable
<p>I have the following object. How can I get the value of GrossAmount (1.10) in this case as a variable?</p>

<p>I have tried:</p>

<pre><code>$gross = $object-&gt;GrossAmount-&gt;_; 
</code></pre>

<p>Whereas <code>$id = $object-&gt;GrossAmount-&gt;currencyID;</code> </p>

<p>Does give me the current code of GBP</p>

<p>But this isn't working.</p>

<pre><code>Array
(
    [TransactionID] =&gt; 9BBXH1113VA716445A
    [ParentTransactionID] =&gt; 
    [ReceiptID] =&gt; 
    [TransactionType] =&gt; express-checkout
    [PaymentType] =&gt; instant
    [PaymentDate] =&gt; 2013-02-28T18:26:43Z
    [GrossAmount] =&gt; stdClass Object
        (
            [_] =&gt; 1.10
            [currencyID] =&gt; GBP
        )

    [FeeAmount] =&gt; stdClass Object
        (
            [_] =&gt; 0.21
            [currencyID] =&gt; GBP
        )

    [TaxAmount] =&gt; stdClass Object
        (
            [_] =&gt; 0.00
            [currencyID] =&gt; GBP
        )

    [ExchangeRate] =&gt; 
    [PaymentStatus] =&gt; Completed
    [PendingReason] =&gt; none
    [ReasonCode] =&gt; none
)
</code></pre>
