ankitweblogic logo
W e b t u t o r i a l s

Define PHP

PHP Installation

PHP INI File

PHP Case Sensitivity

PHP Variable

PHP Echo & Print

PHP Operators

PHP Receiving Input

PHP Decision Making

PHP Loops

PHP Jumping Statement

PHP Image Gallery

PHP Arrays

PHP Date Functions

PHP String Functions

PHP Math Functions

PHP Functions

PHP Variable Scope

PHP Constant Variable

PHP Superglobals

PHP Form Validation

PHP Include Statement

PHP Filter

PHP File Handling

PHP File Upload

PHP Cookies

PHP Session

PHP Send Emails

PHP Captcha

PHP-MySQL Connectivity

PHP MySQL Select

PHP MySQL Insert

PHP MySQL Delete

PHP MySQL Update

Define PHP

PHP originally stood for Personal Home Page, but now it is knowns as Hypertext PreProcessor. PHP is a server side scripting language, means that the code is executed on the server rather than on a client's machine. PHP is a powerful tool for making dynamic and interactive Web pages. Rasmus Lerdorf unleashed the first version of PHP in 1995.
PHP is basically used for developing websites, and is widely-used, free and efficient alternative to competitors such as Microsoft's ASP, JSP, Python and Perl.

PHP Features

  1. PHP is easy to learn and runs efficiently on the server side.
  2. PHP files can contain text, HTML, CSS, JavaScript, and PHP code.
  3. PHP is open source, and can be downloaded freely.
  4. PHP can collect form data for future use.
  5. PHP can encrypt and decrypt data.
  6. PHP can add, delete, modify data in your database
  7. PHP can create, open, read, write, delete, and close files on the server
  8. PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)

PHP Versions

VersionRelease dateSupported untilDescription
1.08 June 1995Officially called "Personal Home Page". This is the first version of "PHP".
2.01 November 1997Officially called "PHP/FI 2.0".
3.06 June 199820 October 2000Development moves from one person to multiple developers.
4.022 May 200023 June 2001Added more advanced two-stage parse/execute tag-parsing system called the Zend engine.
4.110 December 200112 March 2002Introduced "superglobals" Variables ($_GET, $_POST, $_SESSION, etc.)
4.222 April 20026 September 2002Disabled register_globals. Data received over the network is not directly inserted into the global namespace, closing possible security holes in applications.
4.327 December 200231 March 2005Introduced the command-line interface (CLI), to supplement the CGI.
4.411 July 20057 August 2008Fixed a memory corruption bug
5.013 July 20045 September 2005Zend Engine II with a new object model.
5.124 November 200524 August 2006Performance improvements with introduction of compiler variables. Added PHP Data Objects (PDO) as a consistent interface for accessing databases.
5.22 November 20066 January 2011Enabled filter extension. JSON Support.
5.330 June 200914 August 2014Namespace support, late static bindings, jumping statement (goto), garbage collection, improved Windows support, sqlite3, mysqlnd as a replacement for libmysql as underlying library for the extensions that work with MySQL.
5.41 March 20123 September 2015Trait support, short array syntax support. Removed items: register_globals, safe_mode, allow_call_time_pass_reference, session_register(), session_unregister() and session_is_registered(). Several improvements to existing features, performance and reduced memory requirements.
5.520 June 201310 July 2016Support for generators, finally blocks for exceptions handling.
5.628 August 201431 December 2018Constant scalar expressions, argument unpacking, new exponentiation operator, extensions of the use statement for functions and constants, and other smaller improvements.
6.xNot releasedAbandoned version of PHP that planned to include native Unicode support.
7.03 December 20153 December 201864-bit integer support on Windows, uniform variable syntax, return type declarations, scalar type (integer, float, string and boolean) declarations, <=> 'spaceship' three-way comparison operator and shorthand syntax for importing multiple items from a namespace.
7.11 December 20161 December 2019void return type, class constant visibility modifiers.
7.230 November 201730 November 2020Counting of non-countable objects.
7.36 December 20186 December 2021support for reference assignment and array deconstruction with list()

How PHP Is Better Than Its Alternatives?

What is the need of PHP in today's world? The days of static HTML websites with few scripts are over. Today's websites must be dynamic. Everyone needs dynamic websites with top functionalities. So biggest decision facing the creator or developer is to choose best technology platform from hundreds of technologies.

Why PHP is better than other alternatives?

1. PHP is faster to code and execute. It is designed to integrate with the Apache web server. Apache is one of popular free web server on the internet.

2. The same PHP code can runs on different web servers and on different operating systems.

3. Open source: PHP is free. So anyone download complete source code and use it without purchasing any licence.

4. Modifiable: PHP is specially designed to allow for future extension of functionality. It is coded in C and provides a good Application Programming Interface and contain rich set of functions.

5. Popularity: Internet service providers find PHP to be an alternative way to allow their customers to code web applications without the risks.

Large number of PHP Developers, Freelance Programmers, and Outsourcing Firms are available worldwide. Websites coded in PHP will have the option of moving from one host to another as well as a choice for programmers to add functionality.

Updated: 30-Jan-19