Questions tagged «redeclaration»

10
是否有可能覆盖PHP中的函数
你能声明这样的函数吗? function ihatefooexamples(){ return "boo-foo!"; }; 然后像这样重新声明它... if ($_GET['foolevel'] == 10){ function ihatefooexamples(){ return "really boo-foo"; }; }; 这样可以覆盖函数吗? 可以吗
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.