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:
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
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();
}
?
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();
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
5 matches
Mail list logo