__METHOD__ 和 __FUNCTION__的区别

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

";
        echo $_SERVER['HTTP_REFERER'];
        echo "
"; echo $_SERVER['HTTP_X_REQUESTED_WITH']; echo "
"; return __METHOD__; } function fb() { echo "
"; echo __FILE__; echo "
"; echo basename(__FILE__); echo "
"; return __FUNCTION__; } } $Obj = new a(); echo $Obj->fa();// output a::fa echo $Obj->fb();// output fb

 

转载于:https://my.oschina.net/shunshun/blog/1788480

你可能感兴趣的:(__METHOD__ 和 __FUNCTION__的区别)