PHP Tutorial

PHP Introduction

PHP is a server-side scripting language which is used for web development. It stands for Hypertext Preprocessor. It is faster than another programming language. It supports multiple databases like MySQL, SQL, PostgreSQL and many more.


PHP was developed by Rasmus Lerdorf in 1995. It is used to develop a dynamic web application. The earlier name of PHP was a personal homepage.

The PHP code is usually processed by PHP interpreter as a module in the web server or as a Common Gateway Interface (CGI).

Why should we use PHP?

We should use PHP because of various reasons.

  • It runs on various platforms like (Windows, Linux Mac, etc.)
  • It is compatible with all servers like (Apache, IIS, etc.)
  • It supports a wide range of databases.
  • It is free.
  • It is easy to learn.

Following are the features of PHP

There are various features of PHP that are given below.

  • Performance
  • Embedded
  • Portability (Platform Independent)
  • It is easy to use in comparison to other languages.
  • It is an open Source programming language.

Hello world program in PHP

Before start PHP, let us take a simple example of a hello world!. We know that PHP is embedded in HTML.The most common tag of PHP is:<?php ….?>.     


Index Title
Tutorial PHP Environment Setup
Tutorial PHP Example
Tutorial PHP Variables
Tutorial PHP $ and $$ Variables
Tutorial PHP Super Global Variables
Tutorial PHP Echo And Print
Tutorial PHP Constant
Tutorial PHP Magic Constants
Tutorial PHP Data Types
Tutorial PHP Operator
Tutorial PHP Comment
Tutorial PHP if..Else..Elseif
Tutorial PHP Switch Statement
Tutorial PHP For Loops
Tutorial PHP Foreach Loop
Tutorial PHP While Loop
Tutorial PHP Do While Loop
Tutorial PHP Functions
Tutorial PHP Arrays
Tutorial PHP Associative Arrays
Tutorial PHP Multidimensional Array
Tutorial PHP Array Functions
Tutorial PHP String
Tutorial PHP Forms
Tutorial PHP Validation
Tutorial PHP Date and Time

Leave a Comment