I was digging through some code, and I found some calls to mySQL_fetch_array
. Is PHP case sensitive about function names? I recall reading this somewhere but can't seem to find any reference to it.
Note: Function names are case-insensitive, though it is usually good form to call functions as they appear in their declaration.
The method is case-sensitive. Since this information is passed to PHP by whatever container it's running from (mod_php, etc.), the method would have to be uppercase in order for it to be accepted.
Variables in PHP are represented by a dollar sign followed by the name of the variable. The variable name is case-sensitive. Variable names follow the same rules as other labels in PHP. A valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.
Laravel Routing Case-insensitive routeswill match a GET request to /login but will not match a GET request to /Login . In order to make your routes case-insensitive, you need to create a new validator class that will match requested URLs against defined routes.
I am quoting from this:
Note: Function names are case-insensitive, though it is usually good form to call functions as they appear in their declaration.
So, its looks like user-defined functions are not case-sensitive, there was a vote for making functions/objects under PHP5 case-sensitive.
No.
PHP functions are not case sensitive.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With