Home >Backend Development >PHP Tutorial >Summary of PHP case-sensitive issues (practical)
2. Constant names are case-sensitive by default and are usually written in uppercase (But I couldn’t find a configuration item that can change this default, please solve it) example:
3. php.ini configuration item instructions are case sensitive For example, file_uploads = 1 cannot be written as File_uploads = 1 2. Case insensitive 1. Function names, method names, and class names are not case-sensitive, but it is recommended to use the same names as when they were defined. example:
Example:
2. Magic constants are not case-sensitive, uppercase is recommended Includes: __LINE__, __FILE__, __DIR__, __FUNCTION__, __CLASS__, __METHOD__, __NAMESPACE__. example:
3. NULL, TRUE, FALSE are not case sensitive example:
4. Type coercion, case-insensitive include
|