© Daniel Platt 2021
D. PlattTweak Your Mac Terminalhttps://doi.org/10.1007/978-1-4842-6171-2_6

6. PHP

Daniel Platt1  
(1)
Andover, Hampshire, UK
 

PHP is a popular web scripting language. According to w3techs.com, in December 2019, 78.9% of server-side websites with a known language used PHP. It happens that PHP was installed on your computer as part of Catalina.

For some, it might be a stretch to talk about PHP in a book about Terminal. However, if you’ve never used Terminal before, chances are you won’t know about PHP. I will show you some of the basic concepts of PHP, like variables and control statements, and finally finish with some projects. Let’s dive in.

Determining Your PHP Version

Before you start learning about coding in PHP, it is a good idea ...

Get Tweak Your Mac Terminal: Command Line macOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.