Anti-CSRF Tokens in PHP

Anti-CSRF Tokens in PHP

In this tutorial you’ll learn about HTML anti-CSRF tokens in PHP: how to create them and how to verify them to protect your website.

Strict Comparison in PHP

Strict Comparison in PHP

In this tutorial you will learn how strict comparison works in PHP, how it is different from standard comparison, and when you need to use it.

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.