天天看點

case insensitive in php - brookin

case insensitive in php

2017-07-27 23:02 

brookin 

閱讀(102) 

評論(0) 

編輯 

收藏 

舉報

date: 2017-07-27

PHP的命名空間是否區分大小寫?

結論:不區分大小寫,與類名一樣(不區分大小寫)。

不區分大小寫的包括

  1. 函數名
  2. 方法名
  3. 類名
  4. 控制語句(if, else, for, while, foreach)
  5. null,true, false
  6. 魔術變量
  7. 變量強制類型轉換(int, string, double, boolean, object, array)
  8. 語言結構(echo, require, include)

相關閱讀

  1. it is usually good form to call functions as they appear in their declaration.
  2. 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
case insensitive in php - brookin