Reputation: 923
How would I access, say, Title? I have tried $response->Element->Element1->Title but I get a NULL return.
array(1) {
["Element"]=>
object(stdClass)#10 (3) {
["Element1"]=>
object(stdClass)#11 (2) {
["Title"]=>
string(16) "Test"
["Addresses"]=>
object(stdClass)#12 (1) {
["Address"]=>
object(stdClass)#13 (2) {
["Lines"]=>
object(stdClass)#14 (1) {
["Line1"]=>
string(17) "Test Loc"
}
["PostCode"]=>
string(7) "Postcode"
}
}
Upvotes: 0
Views: 65
Reputation: 10717
Try this one: Element
is not object
$response['Element']->Element1->Title;
Upvotes: 3