There are two main rules that you have to follow when naming a variable in PHP. They are as follows:
Variables can only begin with letters or underscores.
Special characters such as +, %, -, &, etc. cannot be used.