Hi there and welcome to your third PHP tutorial,
In this tutorial i will show you how to create and output a variable in PHP.
So to start off put the starting and ending PHP tags.
Now to start a variable you need to put a "$" then the variable name
so it should look like this "$varname" then you need to set it equal to something.
Aubviously to do this you just put an equals sign and then the value, then a semi-colon.
now your script should look like this
Now to output it.
Just type echo then the varaible so it looks like this.
<?php
$varname = 5;
echo $varname
?>
But there is no semi-colon after "echo $varname"
Then run this script and it should output
5
Thanks for viewing this tutorial.
PHP tut 3.
Your Admin; Hondaman.