Assignment Help Australia PHP Basics Of By UAE Assignment Help Providers | Page 3
PHP Variables
In PHP variables are used to keep data like - numbers, a string of text, arrays,
etc. It can have short names like x and y. Some rules for PHP variables are
noted below
1. Variables in PHP begins with $ and continued by the name of the variables.
2. Name of the variables must start with the underscore character or a letter.
3. The name in PHP variables only contains underscore and alpha-numeric
characters.
4. There should be no space in the variable names.
5. Once the variable is declared it can be used again throughout the code.