문제

I have the following returned after setting up a SOAP call to add a new user to a web service.

object(stdClass)#342 (1) { ["Subscriber.AddResult"]=> object(stdClass)#341 (2) { ["Code"]=> int(0) ["Message"]=> string(7) "Success" } } 

Now I need to access the Message variable, but I can't seem to get the damn thing. I can;t seem to var_dump the Subscriber.AddRedult part because of that period.

도움이 되었습니까?

해결책

Enclose the property name in mustaches and quotes:

echo $object->{'Subscriber.AddResult'};
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top