|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-05 10:03 UTC] csaba at ketszeri dot hu
[2002-04-05 10:45 UTC] derick@php.net
[2003-02-11 12:20 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 04:00:02 2025 UTC |
I would love to be able, from within a function, to find out the file/line no that called me. For example: /// some code /// $x = call_a_function(); function call_a_function() { echo "MY LOCATION: __FILE__ : __LINE__"; /*** This is what I would LOVE ***/ echo "CALLED FROM: __CALLING_FILE__ : __CALLING_LINE__"; } That would be fantastic!