PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Not really. It does very naive function call parsing, without support for complex expressions with parens within. It will break as soon as you call it with something like this:
debug("some)");
// would echo:
// "some = 'some)';
debug(debug_backtrace());
// would echo:
// debug_backtrace( = array(....)
Moreover, for large files it's very memory intensive (because file() is used).
It was intended to be joke and not suitable to be used even in development environment (not that you want to use functions like debug() on a production server )
it was intended to be joke and not suitable to be used even in development environment (not that you want to use functions like debug() on a production server Smile )
Oh absolutely. What is impressive is that you knew about it and how to use it because its pretty useless. I think the guys who make php just like to have a laugh every now and then.
i would have to disagree on the whole useless thing, if its included in the base php library, i guarentee that it has a use, it may be a very minute use but a use none the less. there is some point in ur life where u will be saved by a "useless" function like debug_backtrace()