PHP facts for kids

Kids Encyclopedia Facts
PHP
PHP
Paradigm imperative, object-oriented, Procedural, reflective
Designed by Rasmus Lerdorf
Developer The PHP Group
First appeared 1995; 24 years ago (1995)
Stable release 7.0.11 / September 15, 2016; 3 years ago (2016-09-15)
Preview release 7.1.0 Release Candidate 2 / September 16, 2016; 3 years ago (2016-09-16)
Typing discipline Dynamic, weak
Implementation language C
OS Cross-platform
License PHP License
Filename extensions .php, .phtml .php4 .php3 .php5 .phps
Website www.php.net
Major implementations
Zend Engine, Phalanger, Quercus, Project Zero, HHVM
Influenced by
C, C++, Java, Perl, Tcl
Influenced
Hack

PHP (PHP: Hypertext Preprocessor) is a scripting language that helps people make web pages more interactive, by allowing them to do more things.

A website programmed with PHP can have pages that are password protected. A website with no programming cannot do this without other complex things. Standard PHP file extensions are: .php .php3 or .phtml, although a web server can be set up to use any extension.

Its structure was influenced by many languages like C, Perl, Java, C++, and even Python. It is considered to be free software by the Free Software Foundation.

Wikipedia, which runs on MediaWiki, uses the PHP scripting language.

History

PHP was first created by a man called Rasmus Lerdorf in 1995. It is now developed and improved by a large team of people.

Example

An example Hello World program:

<?php
echo "Hello, World!";
?>

It is common to put PHP code inside a HTML document, for example:

<!DOCTYPE html>
<html>
        <head>
                <title>Hello World</title>
        </head>
        <body>
                <?= '<p>Hello World</p>'; ?>
        </body>
</html>

Related pages

  • Simple English Wikipedia version page, the version of PHP that Wikipedia runs on, under the "Installed software" heading.

PHP Facts for Kids. Kiddle Encyclopedia.