[PHP] getting a function name of the calling function

2002-05-01 Thread Joshua E Minnie
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(); } ? -josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] getting a function name of the calling function

2002-05-01 Thread Craig Vincent
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 child

Re: [PHP] getting a function name of the calling function

2002-05-01 Thread Joshua E Minnie
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(); } ?

RE: [PHP] getting a function name of the calling function

2002-05-01 Thread John Holmes
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();

Re: [PHP] getting a function name of the calling function

2002-05-01 Thread Brian Park
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]">news:[EMAIL