Here is the code...
Code:
<?
$name = "Pacman";
>
$name = "Pacman";
>
This is the variable $name
All variables start with a "$"...
This variable is set to show "Pacman"
Echo
The ECHO code allow you to show something in your web page
Here is the code
Code:
<?
echo "Hello and welcome to my world";
?>
echo "Hello and welcome to my world";
?>
That will show: Hello and welcome to my world
Now i feel like merging this together...
So lets begin...
Code:
<?
//set the variable
$name = "Pacman"
$age = "17"
//show it off
echo "Hello I'm $name and I'm $age"
?>
//set the variable
$name = "Pacman"
$age = "17"
//show it off
echo "Hello I'm $name and I'm $age"
?>
In stead of putting my name and my age i've put their variables... its very usefull...
That will show up something like this:
Hello I'm Pacman and I'm 17
That's it!!


