A variable is an information container in which we can insert integers, decimals, characters… the content in the variables can be parsed (read) and can be changed while running a PHP page.
In PHP all variables begin with the symbol $ and it is not necessary to define a variable before using it. There are no variable types either; this means that one variable may contain a number and then characters.
In this example, we have defined three variables, $a, $b and $c, and with the echo statement, we have printed the value contained in them inserting a line break between them.
There are 2 kinds of variables, local variables that can only be used inside the functions, and global variables that can be used outside the functions. We can access a global variable from a function using the instruction global variable_name;