[PHP] PHP For Starters

mytheen

New Member
Messages
8
Reaction score
0
Points
0
<P>thanks, very simple and useful to start with for users like me</P>
<P>&nbsp;</P>
 

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
Nice tutorial, but would have been better if you taught them how to echo text or a variable.
Or both, echo some text and use a variable in it.

E.G.
Code:
<?php

$name = "John";
$age = "14";

echo "Hi i am $name and i am $age years old";
?>
Or something like this:
Code:
<html>
<body>
<?php
$name = "John";
?>

<p>My name is <?=$name?></p>
</body>
</html>
I think those are correct, i am a bit rusty, but those are only examples, maybe show users how to echo variables etc.

What's the use in creating and storing variables if you can't echo them. Lol.
 
Last edited:
Top