Technical requirements
To examine and run the code examples provided in this chapter, the minimum recommended hardware is the following:
- An x86_64-based desktop PC or laptop
- 1 gigabyte (GB) of free disk space
- 4 GB of RAM
- A 500 kilobits per second (Kbps) or faster internet connection
In addition, you will need to install the following software:
- Docker
- Docker Compose
Please refer to the Technical requirements section in 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 the code explained in this book. In this book, 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 the differences in string handling...