Using Variables
<?php
$hello = "Hello World!";
echo $hello;
?>
|
A variable is a means of storing a value, such as text string "Hello World"
You store a variable as such:
$variablename = Value;
You can not forget the Dollar sign or it will not work, and is a common mistake with new php coders.
|