Use the __LINE__ "magic constant".
Chandler, Jacob R wrote:
What function can I use to find out the current line number?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General Ma
The constant __LINE__ works well.
---John Holmes...
- Original Message -
From: "Chandler, Jacob R" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 2:21 PM
Subject: [PHP] line number
What function can I use to find out the current
What function can I use to find out the current line number?
On Sun, 2 Feb 2003, Michael Sims wrote:
> On Sat, 1 Feb 2003 19:59:00 -0800, you wrote:
>
> >PHP keeps track of what line# is being executed, so that when there's an
> >error (say in pg_exec() ) it reports what line the error occured on.
> [...]
> >Is there a function where I can access this in
On Sat, 1 Feb 2003 19:59:00 -0800, you wrote:
>PHP keeps track of what line# is being executed, so that when there's an
>error (say in pg_exec() ) it reports what line the error occured on.
[...]
>Is there a function where I can access this information? Something like
>"get_line();" or somethin
] Line Number function?
PHP keeps track of what line# is being executed, so that when there's an
error (say in pg_exec() ) it reports what line the error occured on.
This appears to happen even during runtime (not just during compilation).
For ex
PHP keeps track of what line# is being executed, so that when there's an
error (say in pg_exec() ) it reports what line the error occured on.
This appears to happen even during runtime (not just during compilation).
For example:
-
--
This woul
Is there any way to print the current line number? i.e.
43 print "blah";
44 print "this is line $LineNumber";
45 print "etc";
and have it result in :
blahthis is line 44etc
?
- Jonathan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
8 matches
Mail list logo