It is hard to understand print_r / var_dump for an object

what is the storage in the next object?

I have never come across this type of var_dump or print_r.

Is this a property of a CFArray? if so, what is an ArrayObject?

I looked at it very carefully, and I assume that the repository is a property of a CFArray with a type of another ArrayObject class. Please correct me ... :)

print_r($response->body->zoneName());

CFArray Object ( 
                [storage:ArrayObject:private] => Array ( 
                   [0] => CFSimpleXML Object ( [0] => us-east-1a ) 
                   [1] => CFSimpleXML Object ( [0] => us-east-1b ) 
                   [2] => CFSimpleXML Object ( [0] => us-east-1c ) 
                   [3] => CFSimpleXML Object ( [0] => us-east-1d ) 
                ) ) 

var_dump($response->body->zoneName());

object(CFArray)#12 (1) { 
                 ["storage":"ArrayObject":private]=> array(4) { 
                 [0]=> object(CFSimpleXML)#9 (1) { [0]=> string(10) "us-east-1a" }    
                 [1]=> object(CFSimpleXML)#3 (1) { [0]=> string(10) "us-east-1b" }
                 [2]=> object(CFSimpleXML)#4 (1) { [0]=> string(10) "us-east-1c" }
                 [3]=> object(CFSimpleXML)#10 (1) { [0]=> string(10) "us-east-1d" }
                } } 
+5
source share
1 answer

Yes, this is private property. And here is the ArrayObject .

+2
source

All Articles