Re: Caller's __LINE__
| From: | Christian Dechery | Date: | Wed, 28 Feb 2001 15:12:26 +0000 |
| Subject: | Re: Caller's __LINE__ | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-42010@lists.php.net to get a copy of this message | ||
Pass __LINE__ to the function as one of its arguments: function debuginfo($msg, __LINE__) { echo"<b>the message is $msg, at line" . __LINE__ . " </b><br>"; }that won't work since __LINE__ returns the exact line where it's used... so it will always show the line of the function header... ____________________________ . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer