PHP is the most commonly used programming language for the web today. PHP is very common because it has a relatively simple architecture compared to other MVC based web frameworks (Python, Ruby, node.js, etc).
Unlike the standard web frameworks, a PHP file is actually an "enhanced" HTML file, which is also capable of executing code inside a document. So for example, you may start with a simple HTML page which looks like this:
<html>
<head></head>
<body>
Hello!
<?php ?>
</body>
</html>
And later on add a PHP section which executes PHP code, and writes the output as HTML. Notice that the PHP line disappeared when executing, since the PHP code is replaced by the output.
Let's try adding the name of the user's name.
No comments:
Post a Comment