Introduction: How to Get Started With PHP

Picture of 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

Picture of PHP Tags: Full

Recommended, this is the default tags.

Step 2: PHP Tags: Short

Picture of PHP Tags: Short

Not recommended, As not all servers allow this.

Step 3: Hello World!

Picture of Hello World!

This is how to build the traditional Hello World! message

Step 4: PHP Comments

Picture of 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

Picture of Functions

Step 7:

Comments

manojrawat77 (author)2015-11-20

Nicely Explained.......

NickS21 (author)2015-08-27

lol, there is not step seven.

andff (author)2013-08-19

thnx

About This Instructable

1,301views

6favorites

License:

More by Razze:How to get started with PHP
Add instructable to: