PHP Tutorial

PHP Introduction

PHP is a server-side scripting language that is used for web development. Itstands for Hypertext Preprocessor. It is faster than other 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 dynamic web application. The earlier name of PHP was personal homepage.

PHP code is usually processed by PHP interpreter as a module in 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 wide range of databases.
  • It is free.
  • It is easy to learn.

Following are the featuresof 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 open Source programming language.

Hello world program in PHP

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


Hello World

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