Caller's __LINE__
| From: | elias | Date: | Wed, 28 Feb 2001 19:31:39 +0000 |
| Subject: | Caller's __LINE__ | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-41969@lists.php.net to get a copy of this message | ||
Hello.
I want to make a small function that sends a debug message:
function debuginfo($msg)
{
echo"<b>the message is $msg, at line" . __LINE__ . "
</b><br>";
}
in my code:
line 1
line 2
line x: debuginfo("hello!!!");
is there is anyway to show the caller's line number? in this case 'x' ?