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 PROTECTED]... > 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(); > > > } > > > ?> > > This example should print out: > I am function new_func > > Is this possible? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php