PHP: Using variables
We will be learning how to create and display the value of variables, in PHP.

First, we will create variables, and asign values to these variables.
A variable $name was created and assigned value of “Kira”.
$name=”Kira”
Another variable $age was also created and assigned the value of 16.
$age=16

Next we created echoed or output the values of these variables by using php code of:
echo $name;
echo $age;

This resulted in the browser showing:
Name is: Kira
Age is: 16

Comments »
No comments yet.
RSS feed for comments on this post.