Re: Simplexml and xml namespaces

php.internals

Unnamed Person

21 years ago
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.