How to Clean After Oneself in PHP

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

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()

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

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 […]

Null safe operator in practice

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 […]

Join the Exakat Community on Discord

Welcome to the Exakat Community! Unleash the Power of PHP Code Analysis Together! Hello PHP enthusiasts, developers, and elePHPants families! We’re thrilled to extend a warm invitation to join the Exakat Community on our vibrant Discord server. If you’re passionate about PHP, code quality, and continuous improvement, this is the perfect space for you. What […]

Smooth migration from array to object

Smooth migration from array to object I still need a smooth migration from array to object. There are a good number of arrays that are acting like objects in my source code. I have read (here, here) and written about the advantages of replacing arrays with objects in PHP. They are significant: better performance, less […]