PHP bug? Two functions with different names announced as redeclaration -
this question has answer here:
- are php functions case sensitive? 8 answers
i need declare 2 functions different names (small 'i' , big "i").
function i() { echo 'small i'; } function i() { echo 'big i'; }
php's output is:
php fatal error: cannot redeclare i()
why? small "i" not big "i".
i tested in linux , in windows.
php not support function overloading, nor possible undefine or redefine previously-declared functions.
note: function names case-insensitive, though form call functions appear in declaration.
Comments
Post a Comment