简体   繁体   English

PHP中的保留字是否区分大小写?

[英]Are the reserved words case sensitive in PHP?

Are the reserved words in PHP ( final , public , function , etc) case-sensitive? PHP中的保留字( finalpublicfunction等)区分大小写吗?

Would it be valid to write: 写下来是否有效:

Final Public Function

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 http://us.php.net/manual/en/reserved.keywords.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM