
PHP Readonly Properties: How to Use Them
Readonly properties can make your code more reliable and readable. Let’s see which properties you should make as readonly and why.

How to Generate a Secure Password with PHP
A PHP method to generate a random and secure password with letters, digits and special characters. Complete working PHP code.

How to Connect to Multiple MySQL Servers with PHP
Learn how to connect to multiple MySQL servers in the same PHP script, using both the MySQLi and PDO extensions.

9 PHP Array Mistakes That Developers Make
Arrays are handy, but there are a few things you need to pay attention to. Here are 9 common mistakes that developers do with PHP arrays.

What are associative arrays in PHP?
A clear and quick explanation of how associative arrays work in PHP, including code examples (and some mistakes to void).

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
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
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: How to Validate an Email Address
PHP email validation: How to validate an email address in PHP (including a complete example).

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.