What Are Variables?
PHP Variables
We can all probably remember variables from algebra class during our high school years, remember expressions like x + 2 = 10 or something fun like 5x(-3x3)2 ? Well, maybe some of us can, don’t worry were not going to be solving any equations here. Anyways, besides this nostalgic moment, how do variables fit into the picture?
A variable is a location in a computer’s memory, identified by a symbolic name, that can hold different values of data at different times during the execution of a program. Variables can store and retrieve data that is essential to your scripts, things like the number of visitors to your website, the total amount due at checkout, the name of the person currently logined in, or the age of the user can all be stored in variables.

