Home >Backend Development >PHP Tutorial >PHP case sensitivity issue

PHP case sensitivity issue

巴扎黑
巴扎黑Original
2016-11-11 11:56:021373browse

1. Case sensitive
1. Variable names are case sensitive
All variables are case sensitive, including ordinary variables and $_GET,$_POST,$_REQUEST,$_COOKIE,$_SESSION,$GLOBALS,$_SERVER,$_FILES, $_ENV, etc.;

2. Magic constants are not case-sensitive, uppercase is recommended
including: __LINE__, __FILE__, __DIR__, __FUNCTION__, __CLASS__, __METHOD__, __NAMESPACE__.


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn