[SOLVED] Show where a function lives?
Moderator: General Moderators
[SOLVED] Show where a function lives?
Ok, I have thousands of files and classes I deal with so I've run into a problem. I need to find out where a variable lives or is defined from. like, where $var was originally defined at (which class, filename, or function). Anyone have any clues?
Last edited by infolock on Tue Jun 07, 2005 2:21 pm, edited 1 time in total.
Code: Select all
__FUNCTION__
__CLASS__
__FILE__http://us3.php.net/manual/en/language.c ... efined.php
that only works if it's called from the current file... i found the answer via debug_print_backtrace()