|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-29 17:07 UTC] henno dot taht at japauto dot ee
[2002-06-29 18:50 UTC] sniper@php.net
[2002-07-01 09:58 UTC] henno dot taht at japauto dot ee
[2002-07-01 10:03 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
There should be a function which returns current functions name. EXAMPLE: function foo(){ debug("Entering function ". func_get_name() ."<br>"); // Function definition here. } function debug($msg){ echo "<span class=debughdr>Debug information: </span>"; echo "<span class=debugmsg>$msg</span>"; } I think func_get_name would be an appropriate name. At least that was the name I looked for it. I don't know any workaround nor how to make user defined function providing this functionality but after asking Experts Exchange I've convinced that I'm not the only one requiring this.