PHP is sensitive to variables, constants, and casing. Not sensitive to class name, method name capitalization. Not sensitive to null,false,true and so on, but also sensitive to the configuration parameters in php.ini. This article summarizes the problems in this area. This article is a summary of the sensitivity of the case to PHP. However, it is recommended to always adhere to "case sensitive" and follow the Uniform Code specification. First, case sensitive 1, variable names are case-sensitive
2, the constant name is case-sensitive, usually written in uppercase (but not found can change the default configuration item, solve)
3,php.ini configuration item Directives are case-sensitive as File_uploads = 1 cannot be written as File_uploads = 1 Two, case insensitive 1, Function name, method name, class name is not case-sensitive, but recommended to use the same name as defined 2, magic constants are not case-sensitive, the recommended capitalization includes: __line__, __file__, __dir__, __function__, __class__, __method__, __namespace__.
3,null, TRUE, and false are case-insensitive, and the following PHP function Var_dump are used.
|