A variable is just a name assigned to reference a location in memory where some value is stored , such as text string "Welcome to first PHP Programme" or the integer value 4.
Variables are one of the features that distinguish a programming language like PHP from markup languages such as HTML.All variables in PHP are prefixed with a dollar sign($).
$variable_name = Value;
Variables are one of the features that distinguish a programming language like PHP from markup languages such as HTML.All variables in PHP are prefixed with a dollar sign($).
Syntax of declaring PHP Variable
$variable_name = Value;