Hi
I've been using the following to return filepath and line number of a method
echo (__METHOD__) . "() - ln : " . (__LINE__) . "<br />";
I'd really like to update this to a class (say comment.php)
class comment
{
public static function show()
{
echo (__METHOD__) . "() - ln : " . (__LINE__) . "<br />";
}
}
that I can call from anywhere in my development
if(COMMENT) comment::show();
and have it return the filepath of the calling code. I've tried a few variants but I'm missing something. Can you help?
thanks