Caller's Line number?

From: Date: Wed, 28 Mar 2001 18:00:33 +0000
Subject: Caller's Line number?
Groups: php.general 
Request: Send a blank email to php-general+get-45837@lists.php.net to get a copy of this message
Hello, can i make a function that displays the __LINE__ of it's caller? ie: function show_caller_s_line() { echo "my caller's line is:" . __LINE__; } 1: blahblahblah 2: show_caller_s_line() 3: blahblah output should be: my caller's line is: 3 is that possible? thanks. -elias

« previous php.general (#45837) next »