Re: [PHP4BETA] Finding out function name

From: Date: Fri, 10 Mar 2000 17:11:02 +0000
Subject: Re: [PHP4BETA] Finding out function name
References: 1 2 3 4 5  Groups: php.version4 
Request: Send a blank email to php-version4+get-11880@lists.php.net to get a copy of this message
On Fri, 10 Mar 2000, Faisal Nasim wrote: > get_active_function_name() > > As it didn't work on my local copy, so I assume > it tells you the current function name you are in... > > right? (example: function blah () { print > get_active_function_name(); } // blah) > > The subject says so - okay! But, it seems he wants > the argv[0] (as in C), which is actually the file > name... > > Or perhaps I am missing something? Yes, you're. He's asking for a C function, not PHP function, and that's what get_active_function_name() is. It's meant for use in C extensions. -Andrei * George Orwell was an optimist. *

« previous php.version4 (#11880) next »