> 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?
No, not with any PHP function I see in the manual. Can you explain why you need to do this? You can call a function name with a variable. Like for your example $variable = "new_func"; $variable("data"); That'll work. Explain what your trying to do and we can probably help you find a better approach. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php