PHP Scripting Language
PHP is a general-purpose scripting language especially suited for web development, rated as the most popular server-side language for web.
It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994. The PHP reference implementation is now produced by The PHP Group.
Current (stable) version: 8.0.x
PHP is a popular general-purpose server-side scripting (programming) 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.
Sample Code (PHP Syntax)
<?php
function helloWorld($runTest) {
$myString1 = 'Hello';
$myString2 = 'World';
$myNumber = 1;
$myTest = (bool) $runTest; // force cast to bool
$myOutput = "Test was disabled ...";
if($myTest === true) {
$myOutput = $myString1 . ' ' . $myString2 . ', this is number: ' . $myNumber;
}
return (string) $myOutput;
}
$testResult = helloWorld(true);
echo($testResult);
// #end php