Variables are "containers" for storing information.
Variable is just like "container" which is used to store Value or Information
A variable starts with the $ sign, followed by the name of the variable:
After the execution of the statements above, the variable $txt will hold the value Hello world!, the variable $x will hold the value 5, and the variable $y will hold the value 10.5.
The PHP echo statement is often used to output data to the screen.
The following example will show how to output text and a variable: