Tag: 重新声明

是否有可能在PHP中覆盖一个函数

你可以申报这样的function… function ihatefooexamples(){ return "boo-foo!"; }; 然后重新宣布它有点像这样… if ($_GET['foolevel'] == 10){ function ihatefooexamples(){ return "really boo-foo"; }; }; 这样可以覆盖一个函数吗? 任何方式?