Features that make PHP go forward Open source projects often support older PHP versions, and sometimes, really much older. At some point, they take the decision to move on. With the drop of older versions, (relatively) new features can be used to modernize the sources. These features are the ones that make PHP go forward: […]
The Quirks and Oddities of the Language: PHP Tips Archive PHP, the server-side platform that powers the web, is known for its versatility and ease of use. However, beneath its seemingly straightforward syntax lies a world of peculiarities, oddities, and unexpected behaviors. If you’re looking to explore the quirks of PHP in a fun and […]
How to Clean After Oneself in PHP While creating efficient and functional code is crucial, it’s equally important to ensure proper finalization of ressources. There are many situations where it is critical to free a lock, close a connexion or complete a file. In this post, we’ll explore three essential features that help code ensure […]
The Forbidden PHP Features Encyclopedia Within the vast realm of PHP development, certain features have incurred the disapproval of various developers, leading to their outright exclusion from conscientious coding practices. This comprehensive encyclopedia serves as a curated catalog, shedding light on the forbidden features that have faced scrutiny and are best avoided in the pursuit […]
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 […]
Lives of elePHPant: the story of Flexy The title of ‘oldest elephpant’ is sticking with our beloved ‘Trisaieul’, the first elephpant, also known as the grand-father. The title of the youngest elephpant, on the other hand, changes as new generations of elephpants appear in the world: at one point of their life, every elephpant was […]
Exakat on FrankenPHP I learnt about Franken PHP by listening to Kevin Dunglas at the AFUP conferences. This is a PHP application server: it loads the code and runs the application from memory. At first sight, it is made for Webapplication. Load the code once, and then run it upon request. But it also has […]
Null safe operator in practice Null-safe operator has been added to PHP 8.1: it is a new object operator that prevents a Fatal error, and its following execution stop, when calling a method or a property on the null value. It has a high appeal, given that it is called ‘safe’ and it reduces the […]
PHP Tops 100 Here are various top 100 of the most popular structures in PHP. All those structures are surveyed in a corpus of more than 3000 open source projects, and storted by frequency on usage. You can use these lists to improve your knowledge of PHP. Top 100 PHP functions Top 100 PHP classes […]
Top 100 most used PHP constants Here is the top 100 PHP constants : it is the list of the most often used PHP native global constants. The classes are ranked in order of project frequency. In a corpus of 3000 OSS projects, the PHP native constants were detected. They may be used directly E_ALL […]