PHP variables are used to store the information and data like string and integer and other kinds of datatypes. If you have already Knowledge of other programming languages then you aware of how many data types are there in the language. In PHP "$" is basically used to initialize all data types.
$txt = "Hello world! My Name is Arun";
$x = 15;
$y = 15.5;
A variable can have a short name (like x and y) or a more descriptive name (age, carname, total_volume).
Rules for PHP variables:
$sign, followed by the name of the variable
$AGE are two different variables)
<?php $txt = "Hacker Console"; echo "I love $txt!"; ?>