In PHP, we specify variables with a dollar ($) sign. Even here you can deduce that PHP is a very rich language.
A list of rules that you must follow when defining a variable;
You cannot use characters other than letters, numbers, and underscores (_).
You cannot initialize the variable name with a number. (
$1variable is false,
PHP distinguishes variable names, so
$variableis not the same as
All terms matching these three rules can be a variable names.
Here are a few examples of suitable variables: