Get the App
SLTechnology News&Howtos  ›  Development  › 

Case-sensitive example Analysis in PHP

Shulou Source: shulou.com Published: 2022-06-01 03:29:08 10月05日 Update

This article mainly introduces the case-sensitive example analysis in PHP, which has a certain reference value, and interested friends can refer to it. I hope you will gain a lot after reading this article.

PHP is case sensitive

In PHP, all user-defined functions, classes, and keywords (such as if, else, echo, and so on) are case-insensitive.

In the following example, all three echo statements are legal (equivalent):

Example

In PHP, however, all variables are case-sensitive.

In the following example, only the first statement displays the value of the $color variable (this is because $color, $COLOR, and $coLOR are considered three different variables):

Example

Thank you for reading this article carefully. I hope the article "case-sensitive sample Analysis in PHP" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Lowercase articles variables examples CUHK analysis examples examples big sentence face different legal three value key keyword interest function only Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Technology Huawei Redmi Docker