Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are PHP functions case sensitive?

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.

like image 676
Ben Dauphinee Avatar asked Apr 13 '11 01:04

Ben Dauphinee


People also ask

Are functions are case-sensitive?

Note: Function names are case-insensitive, though it is usually good form to call functions as they appear in their declaration.

Is PHP Post case-sensitive?

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.

What is meant by case-sensitive in PHP?

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.

Is laravel case-sensitive?

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.


2 Answers

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.

like image 193
SIFE Avatar answered Oct 07 '22 23:10

SIFE


No.

PHP functions are not case sensitive.

like image 36
mpen Avatar answered Oct 07 '22 21:10

mpen