Contributions

Article
The Empty String in PHP: One Value, Too Many Jobs. It is used as default value, value upon success or error, accumulator and cast operator
Article
The Empty String in PHP: One Value, Too Many Jobs. It is used as default value, value upon success or error, accumulator and cast operator
Article
PHP preallocates variables in memory to speed up execution. This costs even with unused variables.
Article
A PHP OOP puzzle exploring how to call all overridden versions of a method across a three-level class hierarchy (Grandparents, Parents, Children) from the deepest child class. The post walks through why `$this` and `parent::` only get you so far, why closure binding fails, and presents two working solutions: a static call to a named ancestor class (which PHP allows within the same hierarchy) and using `ReflectionMethod::invoke()` to bypass method overriding entirely.
Article
A deep dive into PHP's compact() and extract() functions, covering how they work, their real-world usage patterns across 3000+ open source projects, alternative syntaxes using variable variables and the spread operator, security risks of extract() with uncontrolled input, and practical recommendations for modernizing code that relies on them.
Article
A recursive function is a function that calls itself, in order to solve a problem. This type of function is often used in situations where a problem can be broken down into smaller, similar yet smaller problems. The function keeps calling itself with modified arguments until a base case is reached, at which point the function stops calling itself and starts returning values. So, do we know all the recursive functions in PHP?
Article
How to Clean After Oneself in PHP : use register_shutdown_function, __destruct and try-finally to make sure the cleaning always happen
Article
All PHP native classes, ranked by usage frequency. Good base to make sure that one know the commonly used PHP classes.