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.
Readonly properties can make your code more reliable and readable. Let’s see which properties you should make as readonly and why.
A PHP method to generate a random and secure password with letters, digits and special characters. Complete working PHP code.
Learn how to connect to multiple MySQL servers in the same PHP script, using both the MySQLi and PDO extensions.
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.
A clear and quick explanation of how associative arrays work in PHP, including code examples (and some mistakes to void).
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.
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.
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 email validation: How to validate an email address in PHP (including a complete example).
Learn about PHP Traits: what they are, how to use them, and how they differ from interfaces and abstract classes. With plenty of examples.