Technical requirements
To examine and run the code examples provided in this chapter, the minimum recommended hardware is listed here:
- x86_64-based desktop PC or laptop
- 1 gigabyte (GB) free disk space
- 4 GB of random-access memory (RAM)
- 500 kilobits per second (Kbps) or faster internet connection
- In addition, you need to install the following software:
- Docker
- Docker Compose
Please refer to the Technical requirements section of Chapter 1, Introducing New PHP 8 OOP Features, for more information on Docker and Docker Compose installation, as well as how to build the Docker container used to demonstrate code explained in this book. Throughout, we refer to the directory in which you restored the sample code for this book as /repo
.
The source code for this chapter is located here: https://github.com/PacktPublishing/PHP-8-Programming-Tips-Tricks-and-Best-Practices.
We can now begin our discussion by examining new PHP 8 operators.