Re: Get Line Number

From: Date: Fri, 25 Aug 2000 07:39:02 +0000
Subject: Re: Get Line Number
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13620@lists.php.net to get a copy of this message
On Fri, 25 Aug 2000, Maxim Maletsky wrote: > There's a PHP function made for XML called: > xml_get_current_line_number > > My script has nothing to do with XML, how can I get a line number for a php > code? > > (Just like the one that get outputted on an error) > Is it possible at all? Sounds like you're looking for the constant __LINE__. E.g, <? echo __LINE__ ?> Matt

« previous php.general (#13620) next »