Why must you needlessly complicate everything?
—ALF (TV series)
Unlike most other popular languages, PHP is not used “on its own.” It is used “in a context.” PHP was developed for creating web programs or scripts. Accordingly, PHP is designed for web programming. Next, let’s look at some simple tasks and situations that explain how PHP code can be used in web development.
A Script in an HTML Document
Perhaps the most straightforward situation is when PHP ...