I have a function that generate an array (I did not made that function, comes from an API) and then saves it to a variable($customerList). I need to display just one value of an entire nested array; this array contains all this code (shown with print\_r($customerList);) :

```
Array
(
[0] => Customer Object
    (
        [status:protected] => 
        [creation_date:protected] => 2016-01-14T12:07:07-06:00
        [balance:protected] => 
        [clabe:protected] => 321654qweasd
        [derivedResources:protected] => Array
            (
                [cards] => 123123123123
                //a lot of code

```

How can I display just the value on "[cards]" using echo?

I have tried

```
//the for loop {
echo $customerList['0']['derivedResources:protected']['cards'];

```

And

```
//the for loop {
echo $customerList['0']['derivedResources']['cards'];

```

But it just display nothing. I haven't seen an array like this, so maybe is just a newbie mistake.

I think that "protected" thing has something to do with; but if I can display it, I can read/access it, right?

If any of you need the entire array (it's very long) I can put it here.

Thanks.