Enums represent a typed set of possible values in PHP. For example, if you're storing a Book that can have a status of __want to read__, __reading__ or __read__, an Enum will hold these values in one place that you can reference anywhere. Prior to PHP 8.1 (when Enums were added), you'd have to work with a simple class with constants. While that works fine, it doesn't provide much power under the hood. In this course, we'll look at the power of Enums and how they can drastically simplify your code.
Arrow functions (also known as short closures) have been available since PHP 7.4. This course covers everything you need to know about them, while considering if they’re always the best solution to reach for.
When you need to pull values from arrays, destructuring often makes sense. In this course, we'll dive into everything you need to know about destructuring arrays in PHP.
A practical dive into every PHP magic method. You might never use them all, but they're well worth knowing, just in case.
Brush up your skills with this series, covering everything you need to know about working with arrays in PHP alongside practical examples.
Namespaces are everywhere for good reason, they help organise your code and prevent naming conflicts. Learn how to use them, and how PSR-4 autoloading can help even the smallest projects.