How to access array within PHP object : <p>I know this question is a little n00b but I am struggling to work out to how to access the array 'ta[]' within the PHP object below. Usually I would have no problem but because my key contains the brackets i.e. 'ta[]' I can't wrap my head around how to access it, I guess I somehow need to escape it..?</p>

<p>I have tried most combinations such as..</p>

<pre><code>object-&gt;ta[]
object["ta[0]"]
object["ta[]"]
object-&gt;ta[0]
</code></pre>

<p>Any help welcome!</p>

<pre><code>object(stdClass)#6 (11) {
 ["tc"]=&gt; string(4) "4500"
    ["tct"]=&gt; string(1) "1"
    ["pd"]=&gt; string(2) "AT"
    ["df"]=&gt; string(10) "08/04/2016"
    ["dt"]=&gt; string(10) "08/08/2016"
    ["nt"]=&gt; string(1) "2"
    ["ta[]"]=&gt; array(2)
       {
       [0]=&gt; string(2) "40"
       [1]=&gt; string(2) "35"
       }
    ["rc"]=&gt; string(2) "US"
    ["rs"]=&gt; string(2) "AR"
    ["cc"]=&gt; string(2) "US"
    ["dfp"]=&gt; string(10) "07/30/2016"
}
</code></pre>
