PHP - the case-[in]sensitive behavior on variables and functions
I know, the content is allready in the www. But after figure out this behavior, i have to give my two cents to it. I just stumbled over a code and also over the behavior of my ide. Something like
$myClass->getME()was used and my ide pointed out the right declaration in
class myClass { public function getMe() { ... } }Whats so curios about that? Well, while variables are case-sensitive, functions are not. Strange behavior, i know ... so spared me with the gossip ... i also think "wtf". But in the end, good to know that the current code is working ;-).
Kommentare
Ansicht der Kommentare: Linear | Verschachtelt