To start PHP, you must have the following:-
- A PHP Enabled Server
- Knowledge on how to upload files
- Basic FTP info.
Now, if you have those things, please read on, if not, read some other articles.
Look at the following code:
<?php
$variable = "Hello World!";
print $variable;
?>
Now this isn't exactly what most people start off with but in this tutorial I will teach you about both Variables and printing text to screen.
Lets look through the code line by line:
<?php
This opens up PHP, so the server knows what its about to do.
$variable = "Hello World!";
This declares a variable, with the string, Hello World!, inside of it.
?>
This ends PHP.