PHP case-sensitivity


  • 变量名区分大小写

  • 常量名默认区分大小写

  • 函数名、方法名、类名不区分大小写

    BUT!https://bugs.php.net/bug.php?id=60833 parent,self,static
    “parent” and “self”, “static” LSB tokens behave inconsistent when it comes to case-sensitivity. Class names in PHP are case-insensitive, but these three keywords aren’t always, as the parser sees them as raw T_STRINGs.

  • 魔术变量不区分大小写,但默认大写

  • null、true、false不区分大小写


文章作者: Zhong
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Zhong !
  目录