This is a array from which i want to extract the values [\_answer:protected] and [\_correct:protected]

```

Array
(
    [0] => Model_AnswerTypes Object
        (
            [_answer:protected] => True
            [_html:protected] => 
            [_points:protected] => 1
            [_correct:protected] => 1
            [_sortString:protected] => 
            [_sortStringHtml:protected] => 
            [_mapper:protected] => 
        )

    [1] => Model_AnswerTypes Object
        (
            [_answer:protected] => False
            [_html:protected] => 
            [_points:protected] => 1
            [_correct:protected] => 
            [_sortString:protected] => 
            [_sortStringHtml:protected] => 
            [_mapper:protected] => 
        )
)

```

What i am using

```

$key = '_answer:protected';
foreach ($array as $data)
    {
        echo $data[0]->$key;
    }

```

Getting a blank array out of this

Really appreciate any help