问题
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