Quoting from Zend newletter from May 7, 2001
As it looks to me, PHP5 is still case insensitive when it comes to functions and classes.
Does anyone know if there is a way to force PHP5 to be case sensitive? so that if I have
I want to have a stricter coding for the project I work on
thanks!
Since PHP 2, the language has always regarded variable names to be case sensitive, while functions and classes are not. It appears that either PHP 4.1 or PHP 5 will break compatibility with this previous functionality, and regard everything as case sensitive.
As it looks to me, PHP5 is still case insensitive when it comes to functions and classes.
Does anyone know if there is a way to force PHP5 to be case sensitive? so that if I have
Code:
class Foo() {
function Goo() {
print ("Hello world!");
}
}
$FooInstance = new Foo;
$FooInstance->Goo(); // Will work great
$FooInstance->goo(); // Should return a parse error
I want to have a stricter coding for the project I work on
thanks!