Notes & Thoughts Quick thoughts, technical notes, and ideas.
Notes written to clarify my own thinking, share knowledge, explore ideas, and remember important concepts.
Notes tagged with "PHP"
There are 5 notes in total.
PHP Typed Arrays
Typed arrays in PHP through PHPDoc enable static analysis, IDE support, and explicit contracts using array shapes, lists, and advanced constraints beyond native typehints.
PHP ?? (Null Coalescing) and ?: (Ternary Shorthand)
A small reminder of how null coalescing and ternary shorthand work in PHP.
Understanding Common Edge Cases in PHP and JavaScript
Edge cases in PHP and JavaScript often involve type coercion, loose equality, and boundary conditions. Strict comparisons, validation at system boundaries, and explicit type contracts can help, but the rules differ by language and PHP version.
PHP self:: vs static::
PHP self:: binds to the defining class, static:: respects the calling class (Late Static Binding).
PHP Is Not Dead: The Cost of Writing Off Boring Technology
PHP’s reputation as a “boring” technology can obscure its strengths: stability, simplicity, and a mature ecosystem. Dismissing it in favor of trendier alternatives can lead to unnecessary refactoring and create more problems than it solves.