The 100 PHP functions that you have to know Here is the top 100 PHP functions : it is the list of the most often used PHP native functions. The functions are named, and ranked from 1 to 100. The other 4500 functions are not ranked here. The frequency column represents how often this function […]
All the ways to call a method in PHP There are many ways to call a method in PHP. Method calling is a very common task, and, although the most common syntax is the overwhelming majority, there are some niche syntaxes for specific usages. And some good old syntaxes too. Since they are scattered across […]
List of PHP native interfaces, and their implementation This is the list of PHP native interfaces, and their implementation as native classes. This was extracted from the PHP 8.3 source code, with Reflection. Each link leads to the documentation. It is based on a standard PHP 8.3 distribution, plus a few extensions. Interfaces that are […]
New PHP error messages in PHP 8.4 The upcoming PHP 8.4 is bringing new errors messages, and, also, removing some of them. The new messages originate from new features, deprecated ones, removed ones, and extra checks throughout the source code. Let’s review the new PHP error messages in PHP 8.4 and get our code ready […]
The Ultimate Guide to Navigating PHP Features Updates As PHP evolves, so do the language’s features, functionalities, and even the nuances in its behaviors: there are changed behavior in PHP. From syntax changes to the change in behavior of certain functions, it can be overwhelming to keep track of how each new version of PHP […]
Asymmetric visibility for PHP properties One of the lesser visible feature coming to PHP 8.4, pun intended, is the assymetric visibility for PHP properties. It is an upgrade of the current visibility, and also, a number of refined features over readonly, properties hooks or magic methods. It is not for everyone, but it might be […]
A few extra steps with PHP’s Override attribute The Override attribute was introduced in PHP 8.3. It is a new attribute, that marks methods that must be overriding a parent’s class method: one of the parent must define a method with the same name. When this is the case, all is fine. If no parent […]
All String Concatenations in PHP In PHP, string concatenation is a common operation used to combine multiple strings into a single one. There are no less than 4 ways to combine several strings into one. Each have it own usage, adapted to each context, and it is a good coding skill to know them all. […]
A story of compact() and extract() Compact() and extract() are two sides of the same coin. They are also a good part of the PHP story, with their close cousins, the variable variables. Let’s review the usage of compact() and extract() and see how they can make it into the future of PHP. From variables […]
A PHP Dictionary In the vast and dynamic ecosystem of PHP development, newcomers often find themselves grappling with a plethora of unfamiliar terms and concepts. From functions and methodologies to frameworks and patterns, navigating the PHP landscape can sometimes feel like learning a new language altogether. That’s why why we are introducing a PHP Dictionary. […]