How can i parse this array
<p>Lets say this was my retrieved object <code>$myObj</code></p>

<pre><code>Array
(
    [0] =&gt; xl_oio_0_1_Mytitle Object
                (
                        [_unknown:protected] =&gt; 
                        [header_:protected] =&gt; Header Object
                                (
                                        [_unknown:protected] =&gt; 
                                        [myId_:protected] =&gt; my_title
                                        [userId_:protected] =&gt; 
                                        [createTime_:protected] =&gt; 
                                )

                        [id_:protected] =&gt; ID Object
                                (
                                        [_unknown:protected] =&gt; 
                                        [id_:protected] =&gt; ingy3spdzE1uiMtCYRSlmwtX
                                )

                        [dataType_:protected] =&gt; 2
                        [picSize_:protected] =&gt; 8669
                        [userId_:protected] =&gt; ID Object
                                (
                                        [_unknown:protected] =&gt; 
                                        [id_:protected] =&gt; ingy3spdzE1uiMtCYRSlmwtX
                                )

                        [fName_:protected] =&gt; Joe
                        [lName_:protected] =&gt; Smith
                        [cDate_:protected] =&gt; RxyascTe89Xe4
                )
    [1] =&gt; etc...
</code></pre>

<p>And I am trying to parse the name and date, ive tried the following with no luck.</p>

<pre><code>$i=0;
while( $i &lt; 20 ){

    // Notice: Trying to get property of non-object
    //$firstName    = $myObj-&gt;xl_oio_0_1_Mytitle-&gt;fName_;

    // Fatal error: Cannot use object of type
    //$firstName    = $myObj[$i]['fName_'];

    // Parse error: syntax error, unexpected T_OBJECT_OPERATOR
    $firstName  = $myObj-&gt;xl_oio_0_1_Mytitle(object-&gt;fName_);
    echo $firstName . '&lt;br /&gt;';
    $i++;
}
</code></pre>
