This is a built-in PHP function that I can’t believe I didn’t learn about until just a few weeks ago. One of the developers at work was debugging an application that had a lot of includes and he called debug_print_backtrace(). It dumps out a nice array showing which files called a function, and what line number it occurs on.
See http://us2.php.net/debug_print_backtrace for more information.
Related posts:
- Convert a PHP Object to an Array
- sorting a multidimensional array in php
- using JSON to pass JavaScript arrays to PHP via Ajax
- getting rss feeds with php’s simplexml_load_file() function
- Pass Objects and Arrays Between JavaScript and PHP with JSON
This entry was posted
on Wednesday, March 4th, 2009 at 9:00 pm and is filed under Programming.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.