http://www.php.net/manual/en/language.constants.predefined.php
Justin Garrett
"Jacob R Chandler" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
What function can I use to find out the current line number?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
Nevermind - found the answer. The current line number is held in the
constant __LINE__ and the current file name is held in the constant __FILE__
So I can do the following:
print "this is line " . __LINE__ . " in the file " . __FILE__;
- Jonathan
"Jonathan Hilgeman" <[EMAIL PROTECTED]> wrote in
2 matches
Mail list logo