__FUNCTION__
` :<?php
function printFunctionName() {
echo "The name of this function is: " . __FUNCTION__;
}
printFunctionName();
?>
The name of this function is: printFunctionName
__FUNCTION__
` magic constant is replaced with the name of the function in which it appears.