Chris92 Posted September 22, 2010 Share Posted September 22, 2010 Hi, I'm using an EPP for boring stuff that wont interest you guys anyway. The problem I'm having is the EPP comes with its own API which parses XML for you. The problem with it parsing XML is that the XML that is received comes in a format which has :'s in the keys. Example: SidnEppResult Object ( [message:SidnEppResult:private] => [status:SidnEppResult:private] => domain_unavailable [code:SidnEppResult:private] => [notifyUser:SidnEppResult:private] => ) Then I want to be able to put this information to use, so I call the constants like this: <?php echo $object->status:SidnEppResult:private; The problem then is that PHP throws me a little parse error. Any help is appreciated, Chris Quote Link to comment https://forums.phpfreaks.com/topic/214103-problem-calling-objects-parsed-from-xml/ Share on other sites More sharing options...
Chris92 Posted September 23, 2010 Author Share Posted September 23, 2010 Bump Quote Link to comment https://forums.phpfreaks.com/topic/214103-problem-calling-objects-parsed-from-xml/#findComment-1114391 Share on other sites More sharing options...
trq Posted September 23, 2010 Share Posted September 23, 2010 $object->status should suffice. Quote Link to comment https://forums.phpfreaks.com/topic/214103-problem-calling-objects-parsed-from-xml/#findComment-1114501 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.