Is PHP a case-sensitive scripting language?

Yes and no are the answers to this question. In PHP, variable names and declarations are case-sensitive, but function names are not.

User-defined functions in PHP, for example, can be declared in uppercase but afterward referred to in lowercase and still work properly.

Yes, PHP is case sensitive in regards to function only but it should not include the function(s) which is defined by the user.

For e.g. one have defined the function “abc” it must be called by “abc” only nd if function defined “XYZ” it must be called by “XYZ” to pass the query. But if one can call “abc” function by “ABC” OR “XYZ” function by “xyz”, it could not pass the query because of mismatch of case.