digitalnature / php-ref

A better alternative to print_r / var_dump
347 stars 59 forks source link

SimpleXMLElement attributes #26

Open marekpw opened 9 years ago

marekpw commented 9 years ago

For some reason, I cannot get properties inside the @attributes object of SimpleXMLElement objects to show.

http://i.imgur.com/84AtMfy.png

Kint and xdebug's var_dump can see them, I'm not sure about stock PHP var_dump. I love REF, it looks way more appealing and clean than Kint, but this problem makes it unusable for me.

Also, have you thought about adding support for backtracing? I would completely get rid of Kint in favor of this project if this was added :)

digitalnature commented 9 years ago

It looks like Kint and var_dump display iterators as arrays after a certain point, while REF always displays them as what they really are - objects. Perhaps another section is needed here, where the string representation of the object is shown.

prohtex commented 5 years ago

I'd like this too!