PHP has a rather confusing beginning—it was not originally intended to be a programming language. Instead, it was a collection of tools to be mixed in with HTML.
Things have moved on since then, and there is quite a lot of programming in PHP, and we’ll certainly be doing quite a lot of it ourselves. However, PHP on the Web is still designed to be mixed in with HTML, and you’ll especially see that when you include the results of your PHP coding in your output page.