note 125142 deleted from userlandnaming.rules by cmb
| From: | cmb@php.net | Date: | Thu, 25 Jun 2020 06:48:33 +0000 |
| Subject: | note 125142 deleted from userlandnaming.rules by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-214804@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
#### Rules for PHP identifiers
1. A variable starts with the $ sign, followed by the name of the variable.
2. A variable name must start with a letter or the underscore character.
3. A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ ).
4. Identifiers are case sensitive. Therefore, a variable named $unicorn is different from a variable
named $Unicorn, $uNicOrn, or $unicorN.
5. Identifiers can be any length.
6. An identifier name canât be identical to any of PHPâs predefined keywords.