How to Create a Sequence in PHP

How to Create a Sequence in PHP

To create a sequence with PHP, you need to create a Generator function that uses the yield keyword to return multiple values. Here’s how.

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.