Hello all,
Can’t var_dump simpleXML properties. I will get always NULL.
So, here is part of my print_r on the object:
SimpleXMLElement Object ( [id] => 232131 [roid] => 123123-ASAD [status] => SimpleXMLElement Object ( ) [postalInfo] => SimpleXMLElement Object ( [name] => Why can’t I access this value
I can access perfectly the id, by doing:
$infoData->id;
I can access roid by using:
$InfoData->roid;
Then we have an empty object that we can ignore (status)
Then we have another object called postalInfo and inside that the name that we like to get. So,
$InfoData->postalInfo->name;
But I’m getting nothing returned.
Am I missing the path somehow?
Thanks a lot,
Márcio