0

When I DPM the simpleXMLElementObject it returns

(Object) SimpleXMLElement

print_r returns the following:

SimpleXMLElement Object ( [0] => c1e1c959-c99d-42f0-8a44-2998b )

Although when I echo I can see the value for my object. Thus what is the best way to get its value in a string format?

This way then I can process that information.

Thanks.

1

The issue was that dpm was not printing some of the SimpleXMLElement values. They were only visible from the var_dump after die. Maybe there is a better way to check these. What I noticed was the value was being generated but dpm was not showing it and var_dump did.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.