12. Exploring Weakmaps - Front Line PHP

Опубликовано: 15 Июнь 2026
на канале: SPATIE
3,809
99

A WeakMap is a new class in PHP 8 that has array like behaviour. Unlike a regular arrays, WeakMaps are keyed by objects. In this video, you'll see what that means, and how Weakmaps can be used.

💸 Buy the full Front Line PHP course with a nice discount by using this link: https://spatie.be/products/front-line...

Links:
• Front Line PHP; the book that explains all PHP 8 features and modern PHP in depth: https://front-line-php.com/
• WeakMap RFC: https://wiki.php.net/rfc/weak_maps
• Spatie/once: https://github.com/spatie/once

📦 Check out our open source packages: https://spatie.be/open-source
❤️ Support us: https://spatie.be/open-source/support-us

🐦 Twitter:   / spatie_be  
🔷 Facebook:   / spatie.be  
📸 Instagram:   / spatie_be