"Put simply, a variable is an area of memory that has a
convenient name assigned to it, this area of memory can then be
used to store any data related to your script for further use later
in your script.
"Under PHP, variables are indicated by prefixing the name with a
dollar sign. So for example to declare a variable that might be
used to hold a name you might use:
$name = "peter";
"In the above case PHP assigns a string of data containing the
word "peter" to a memory address and then points the identifier
$name to it so that's it's easy to remember and use."
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.