I started learning the PHP programming language in 2003.
The official webpage can be found at this website and comes with this intro.
PHP is a popular general-purpose scripting language that is especially suited to web development.
Fast, flexible, and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
To run PHP you need to install a web server, install PHP, and if you want to install a database, such as MySQL to use database.
Another good solution for learning is online tools editors.
The PHP acronym comes from Personal Home Page.
Historically, the PHP Framework Interop Group (FIG) has created the PHP Standards Recommendation (PSR) documents that have helped bring more standardization to the language since 2009.
The syntax of this programming language is simple.
The PHP processor only parses code within its delimiters allowed by PSR-1 are <?php and ?> or <?= and ?> in order to to separate PHP code from non-PHP data – HTML.
Each line of code need to be close with semicolon ;.
echo "Hello World!\n";
Variables are case-sensitive and is prefixed with a dollar symbol and a type does not need to be specified in advance.
PHP has hundreds of base functions and thousands more from extensions.
PHP supports true anonymous functions as of version 5.3.
Anonymous functions, also known as closures, allow the creation of functions that have no specified name.
$greet = function($name)
printf("Hello %s\r\n", $name);
The PHP language is an OOP – Object-Oriented programming.
You can see a simple demo example on online tool created by with an simple example.