<html>
<?php
// Comments like this
$text = 'This is PHP';
echo $text;
?>
</html>
PHP, Hypertext Preprocessor, or Personal Home Page, as it was originally named, is a dynamic, interpreted, scripting language, made for building interactive websites on the server.
Even though itβs old, and mostly pronounced βdeadβ, it remains one of the most popular languages for backend web-development. (Also good to know because, it used to be so popular, a lot of websites will have some PHP somewhere).
It is used in:
It predates JavaScript ποΈ, and was one of the first languages to be embedded directly into HTML ποΈ, allowing websites to be built dynamically on a server.