PHP is a popular programming language, especially widely used in the web direction. So is PHP's variable naming sensitive to size? The real answer is: PHP variable naming is case-sensitive.
PHP variable names are case-sensitive, but classes, functions, built-in structures, and keywords are not case-sensitive.
The following is a practical demonstration that PHP variable names are case-sensitive.
Create a new PHP document and declare a variable$stu='jack';
Name a header again Variables with capital letters (this way of writing variables is not recommended, here is to demonstrate the problem), example: $Stu = 'Smith';
echo '小写的$stu的值为:'.$stu; echo '<br />'; echo '大写的$Stu的值为:'.$Stu;
The above is the detailed content of Are php variable names case sensitive?. For more information, please follow other related articles on the PHP Chinese website!