How is PHP Used in HTML, Learn PHP, Codecademy, Build Dynamic Web Pages in PHP, The PHP Interpreter

In this PHP programming tutorial, we look at How is PHP Used in HTML. This is based on “Learn PHP” on Codecademy. Here we learn how PHP is used to Build Dynamic Web Pages. We are also introduced to the PHP Interprete which we learn allows us to create dynamic user-specific content. We are taught that dynamic web pages are those where every individual visitor can have a customized page that may look different than another user. This is in contrast to static pages which serve the same content to each page. We learn that this is thanks to the PHP Interpreter. When the client(the browser) requests PHP files from the server, the files we request go through the PHP interpreter which allows for the customization of individual content. The PHP interpreter is able to interpret PHP and make requests to a database for user-specific content. PHP is able to do this because it was designed to work closely with HTML. When our page is delivered from our back-end to our front-end, our PHP content is executed and also added to the HTML and forms one HTML document. We also learn our first keyword in PHP, the “echo” keyword which allows us to output text. We are also told that an instruction that is written in PHP is referred to as a PHP statement. All PHP statements end with a semicolon(;). At the end of a request to a PHP file, the front end will be an HTML document.