loop array and some indices have other array
<p>How can I loop this type of array where only attribute name has another array? Thanks</p>

<pre><code>
     array(
        '0' => array(
            'id' => 1,
            'name' => array(
                'firstname' => 'pat',
                'last' => 'lozan'
            )
        ),
        '1' => array(
            'id' => 2,
            'name' => array(
                'firstname' => 'bob',
                'last' => 'brown'
            )
        ) 
    )
</code></pre>
