PHP bug? Two functions with different names announced as redeclaration -


this question has answer here:

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.

http://php.net/manual/en/functions.user-defined.php


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -