Introduction: How to Get Started With PHP

Okay, so first of all.
What is PHP?

PHP ( Full name: PHP: Hypertext Processor ) is described by the creators them self like this:


"PHP is a widely-used general-purpose scripting language that is especially suited for Web development"

A Few things about PHP:

PHP files have a file extension of ".php", ".php3", or ".phtml"
PHP stands for PHP: Hypertext Preprocessor
PHP is a server-side scripting language, like ASP
PHP scripts are executed on the server
PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
PHP is an open source software
PHP is free to download and use



Step 1: PHP Tags: Full

Recommended, this is the default tags.

Step 2: PHP Tags: Short

Not recommended, As not all servers allow this.

Step 3: Hello World!

This is how to build the traditional Hello World! message

Step 4: PHP Comments

To comment your PHP code is recommended, It's good for you and other future coders.

Step 5: Variables

$a = 1;
$b = "c";
$hello = "world";

echo $a; //1
echo $b; //c
echo $hello; //world

Variables are very easy to use. 

Just remember to use singe quotes or double quotes if it's a string.

Step 6: Functions

Step 7: