What is PHP?
PHP is similar to a lot of other programing languages. What sets it apart is the ability to seamlessly integrate into HTML. The name PHP is a recursive acronym for PHP: Hypertext Preprocessor (though it originally derived from Personal Home Page Tools). That tells you that PHP, which resides on the server, creates HTML files from PHP scripts on the fly.
As an end user, all you see are HTML pages, so PHP does its work behind the scenes on the server from which you request the page. This is different from Javascript, for example, which is executed by the browser on the page as it is served. The PHP constructs the page before javascript can act on it.
What we will do in this section, after briefly talking about some details of how PHP actually works, is show how PHP can modularize web development.