PHP Traits Explained

PHP Traits Explained

Learn about PHP Traits: what they are, how to use them, and how they differ from interfaces and abstract classes. With plenty of examples.

PHP Redirect Tutorial

PHP Redirect Tutorial

How to redirect in PHP using the PHP header() location, HTML and JavaScript (and the mistake to avoid): the complete tutorial with examples.

PHP Interfaces Explained

PHP Interfaces Explained

Let’s find out what PHP Interfaces are, how to use them (with examples) and how they differ from abstract classes.

PHP Constructors Explained

PHP Constructors Explained

A simple tutorial on how PHP class constructors work, including the rules for constructors inheritance and the new PHP 8 argument promotion.

PHP Abstract Classes Explained

PHP Abstract Classes Explained

This is a super-simple tutorial about abstract classes in PHP. Learn how PHP class abstraction works, how to use abstract methods, and all the abstraction rules that you need to know.

How to debug PHP (without a debugger)

How to debug PHP (without a debugger)

In this tutorial you will learn how to debug your PHP scripts without a debugger. Error reporting, variable and function debugging, and logging.

PHP Password Hashing tutorial

PHP Password Hashing tutorial

In this tutorial I show you how to perform PHP password encryption. You will learn how to use password_hash() and password_verify(), with step-by-step examples.