I'm wondering if there's a PHP var or function that returns the current line number of the PHP script that's being executed.
I've got quite a bit of error trapping/reporting built in to a site that I'm currently developing and it would be nice to include the line number that the error processing function is being called from.
I'm imagining something like this:
ProcessError ( $PHP_LINE_NUM . " An error occurred, etc." );
OR
ProcessError ( PHP_LINE_NUM() . " An error occurred, etc." );
Your expert help is much appreciated!