Topic: PHP Essentials

Browsing all PHP Essentials courses

PHP
PHP Enums

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.

31 mins
PHP
PHP Arrow Functions

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.

27 mins
PHP
Array Destructuring in PHP

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.

23 mins
PHP
Every PHP Magic Method

A practical dive into every PHP magic method. You might never use them all, but they're well worth knowing, just in case.

1 hr 55 mins
PHP
PHP Essentials

If you know the basics, this is next. The stuff you need to know as a developer.

3 hrs 3 mins
PHP
Arrays are everything

Brush up your skills with this series, covering everything you need to know about working with arrays in PHP alongside practical examples.

2 hrs 19 mins
PHP
Understanding namespaces

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.

20 mins