I don't know of a way to print out the function name. But for error
detection purposes, can you use __FILE__ and __LINE__ as alternatives? For
example:
echo "I am line" . __LINE__ . " at file " . __FILE__ . "\n";
Brian
"Joshua E Minnie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">ne
> I actually need it to print out the name of itself for error detection
> purposes.
>
> > > Does anybody know of any constants or predefined functions that
will
> > > retrieve the calling functions name? For example:
> > >
> > > > > function new_func($somedata) {
> > > echo "I am function ".
I actually need it to print out the name of itself for error detection
purposes.
> > Does anybody know of any constants or predefined functions that will
> > retrieve the calling functions name? For example:
> >
> > > function new_func($somedata) {
> > echo "I am function ".get_func_name();
>
> Does anybody know of any constants or predefined functions that will
> retrieve the calling functions name? For example:
>
> function new_func($somedata) {
> echo "I am function ".get_func_name();
> }
> ?>
I don't believe there is anything setup to pass the name of a parent
function to a ch
4 matches
Mail list logo