Storing Values in Variables
Variables are the building blocks of any language. Variables can consist of both numeric and non-numeric data.
PHP variable always start out with a dollar sign ($), which is followed by the variable name. For example, $tutorial, $hi, and $you are all valid PHP variable names.
Note that PHP variables are case-sensitive meaning that $hello is different from $Hello or $HELLO.
Assigning Variable Values
To assign a variable, the use of the equal sign (=) is necessary. This operator assigns a value to a variable. To use a variable in your script, call the variable by name, and PHP will substitute its value. Here is an example:
Saving Forum Input Variables
Forms have always been the easiest and quickest ways of adding interactivity to your site. You can use forms for emailing, comments, or asking costomers if they like your products. PHP can simplify the task of forms by using variables. Take this script for example: