case insensitive in php
2017-07-27 23:02
brookin
閱讀(102)
評論(0)
編輯
收藏
舉報
date: 2017-07-27
PHP的命名空間是否區分大小寫?
結論:不區分大小寫,與類名一樣(不區分大小寫)。
不區分大小寫的包括
- 函數名
- 方法名
- 類名
- 控制語句(if, else, for, while, foreach)
- null,true, false
- 魔術變量
- 變量強制類型轉換(int, string, double, boolean, object, array)
- 語言結構(echo, require, include)
相關閱讀
- it is usually good form to call functions as they appear in their declaration.
- always use same cases when reference back to either variables(its\' mandatory) or functions(its\' optional, but recommended).
case sensitive
variables, constants, array keys, class properties, class constants
notice: array keys
Array
(
[a] => bb
[A] => CC
)
case insensitive
functions, class constructors, class methods, keywords and constructs (if, else, null, foreach, echo etc.)
- 分類 php
