# Simplexml and xml namespaces

- Thread: https://externals.io/message/18232
- Original archive: https://news-web.php.net/php.internals/18232
- Started by etnu@etnu.org on 2005-08-20T03:21:18+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #18232 — etnu@etnu.org — 2005-08-20T03:21:18+00:00

URL: https://externals.io/message/18232#18232

This is my first post here, so forgive me if I'm not doing this right.

It seems like php objects need a magic function __dump or __debug or something
similiar to handle these kinds of situations. I can see why this might be
construed as hackish / lame, but by that token, var_dump itself is. It seems
like the only alternative solution is to write special debugging functions for
each class, which makes var_dump less useful than it could be. Maybe I'm crazy,
but I always thought that var_dump should be used to really tell me as much as
possible about any variable I passed in. If all I wanted was the array output,
I could just as easily use print_r instead.



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
