Re: [PHP-DB] How to know the name of a function ?

[email protected] (Stut)
Newsgroups php.db
Message-ID <[email protected]>
On 9 Nov 2008, at 21:41, Jean-Philippe Battu wrote:
> In a function, what is the best way to know the name
> of this function ?
> I read the documentation and found only func_num_args(),
> func_get_arg() and func_get_args which are relative to the
> arguments given to the function.
> What is the equivalent to $0 (bash) in php ?

The constant __FUNCTION__ will give you this.

-Stut

-- 
http://stut.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.