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 line number?
--
PHP Gene
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
I think what you are looking for is:
__LINE__
See: http://www.php.net/manual/en/language.constants.predefined.php
Cheers,
Steven Balthazor
-Original Message-
From: Benjamin Smith [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 01, 2003 8:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] L
5 matches
Mail list logo