Is it possible?
function test() { echo \"function name is test\"; }
You can use the magic constants __METHOD__ (includes the class name) or __FUNCTION__ (just function name) depending on if it's a method or a function... =)
__METHOD__
__FUNCTION__