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 4 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" works in PHP.
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 belies its strengths: stability, simplicity, and a robust ecosystem. Dismissing it for trendier alternatives often leads to unnecessary refactors, creating more problems than solving.