Getting started

This chapter puts PHP on the machine and a first line on the screen: what the language is and where the code runs, the package and the built-in server, the opening tag with echo, and the comments that stay in the file.

1.1 What is PHP and where it runs what PHP is, where the code runs, and why the language is worth learning Open 1.2 Install PHP 8.5 and run your first command install PHP on Linux, check the version, and run code in the terminal Open 1.3 Your first PHP script the opening tag and echo, then the script run in the terminal Open 1.4 Comments in PHP line comments, block comments and docblocks, and when each one fits Open

Lessons