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.

History of PHP

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.

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 ….?>.
<html>
<head>
<title>Hello World</title>
</head>
<body>
<?php echo "Hello, World!";?>
</body>
</html>

Output

Hello World

PHP Topics

Core PHP:

Misc

  • PHP Multidimensional Array
  • PHP sort array
  • PHP Array Length
  • PHP array push
  • PHP array to string
  • PHP in_array
  • Types of Array in PHP
  • PHP Function
  • PHP Cookie
  • PHP Session
  • PHP File Upload
  • Upload Image in PHP
  • PHP Date Format
  • PHP Error Reporting
  • PHP try catch
  • PHP Database Connection
  • PHP String Functions
  • PHP substr
  • OOPs Concepts in PHP
  • PHP class
  • PHP Constructor
  • Inheritance in PHP
  • PHP Abstract class
  • PHP Interface
  • PHP Namespace
  • PHP isset
  • PHP str_replace
  • PHP strpos
  • PHP Date Function
  • PHP Display Errors
  • PHP Form Validation
  • PHP mail() Function
  • PHP redirect
  • PHP Ternary Operator
  • PHP String replace
  • PHP trim
  • PHP use
  • What is PHP used for
  • Crud Operations in PHP
  • Features of PHP
  • How to define a function in PHP
  • How to Install PHP
  • PHP Header
  • PHP Header Location
  • PHP strtotime
  • PHP Syntax
  • How to run PHP program
  • PHP const
  • PHP Current Date
  • File Handling in PHP
  • PHP File
  • PHP Introduction
  • PHP JSON
  • PHP Pagination
  • PHP Preg_match
  • PHP urlencode
  • PHP var_dump
  • Advantages of PHP
  • Get and Post Method in PHP

Interview Questions

  • PHP Interview Questions
  • PHP OOPs Interview Questions

CMS Tutorial

 



ADVERTISEMENT
ADVERTISEMENT