To get the function name inside any function in php, PHP has special MAGIC CONSTANTS. From the magic constants here we used __FUNCTION__ to get the function name inside the called function..
<?php
function about_us(){
echo __FUNCTION__;
}
echo __FUNCTION__;
}
?>
Output
about_us
0 comments:
Post a Comment