Function Call Line Number

From: Date: Wed, 14 Nov 2001 07:01:08 +0000
Subject: Function Call Line Number
Groups: php.general 
Request: Send a blank email to php-general+get-74543@lists.php.net to get a copy of this message
Hello, Does anyone know of a way, that from within a function, you can determine what line number and file the function was called on? I did try: function myfunc($lineno = __LINE__) { echo $lineno; } but this just outputted the very line that __LINE__ resides on. This would be very helpful in displaying sensible error messages, like the native php functions do. Thanks, -Jason Garber IonZoft.com

« previous php.general (#74543) next »