Are the reserved words case sensitive in PHP?

梦想的初衷 提交于 2019-12-13 05:36:37

问题


Are the reserved words in PHP (final, public, function, etc) case-sensitive?

Would it be valid to write:

Final Public Function

回答1:


I've never had a problem with case-sensitivity as it relates to reserved words. Sometimes I capitalize them, sometimes I don't. Take a look at this list for examples of usage:

http://us.php.net/manual/en/reserved.keywords.php



来源:https://stackoverflow.com/questions/13143641/are-the-reserved-words-case-sensitive-in-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!