PHP 8.5 new error messages

PHP 8.5 new error messages With a host of new features, PHP 8.5 also brings another 265 new error messages. These new error messages appears as PHP pays more attention to received arguments: their type, their values are reviewed more carefully before being used. And some error messages are prone to appear more often than […]

Understanding All Relations Between Classes, Interfaces, Traits, and Enums in PHP

Understanding Relationships Between Classes, Interfaces, Traits, and Enums in PHP Modern PHP offers four major code structures — classes, interfaces, traits, and enums — each with its own purpose and rules. But the real power of PHP comes from how these structures can interact with each other. This page gathers all relations between classes in […]

1-2-3 PHP operators

1-2-3 PHP operators I learnt my PHP on a European keyboard, and it was always a pain to use some strange symbols. When I moved to Canada, I quickly realized that the chosen symbols were actually very easily accessible on the keyboard: it was just my layout that was less practical. Then, I also realized […]

PHP parentheses usage

The Required, The Optional, The Useless, and The Weird: of In PHP, parentheses () aren’t just punctuation : they play different roles depending on where and how they’re used. Some are compulsory, others are optional, and a few are just useless clutter. And then, there’s the weird one: (cast). Let’s review all PHP parentheses usages […]

PHP error messages encyclopedia

PHP Error Messages Encyclopedia If you’ve ever coded, you’ve likely encountered cryptic error messages that left you scratching your head. Whether it’s a syntax error, an unexpected function call issue, or a deprecated feature warning, debugging can be a frustrating experience: this also happens with PHP. That’s where the PHP Error Message Encyclopedia (PEME) comes […]