| Php is case sensitive to variables and constants. The method name is case-insensitive to the class name. It is not sensitive to null, false, true, and other parameters. it is also sensitive to configuration parameters in php. ini. This article summarizes this issue. This article is a summary of whether php is case sensitive. However, we recommend that you always adhere to "case sensitivity" and follow the unified code specifications. I. case sensitivity: 1. variable names are case sensitive.
2. the constant name is case-sensitive by default. it is usually written in uppercase (but the default configuration item cannot be changed)
3. the php. ini configuration item command is case sensitive, for example, file_uploads = 1 cannot be written as File_uploads = 1 II. case-insensitive 1. the function name, method name, and class name are case-insensitive. However, we recommend that you use the same name as the name when defining 2. the magic constant is case-insensitive. it is recommended that you use uppercase letters: __line _, _ FILE _, _ DIR _, _ FUNCTION _, _ CLASS _, _ METHOD _, and _ NAMESPACE __.
3. NULL, TRUE, and FALSE are case-insensitive. the following uses the php function var_dump.
|