·
8 min
PHP match Expression vs switch: What Changed
PHP match vs switch compared: strict comparison, return values, exhaustiveness, and when each one is actually the right tool.
3 Articles
PHP match vs switch compared: strict comparison, return values, exhaustiveness, and when each one is actually the right tool.
A practical guide to PHP readonly properties: value objects, DTOs, immutable config, constructor promotion, and the gotchas that bite in production.
A practical guide to PHP enums: pure vs backed, cases(), from(), tryFrom(), methods, interfaces, and real-world usage in Laravel.