WeakMap in PHP 8
In PHP 8, WeakMap is a new built-in class that provides a way to associate arbitrary data with objects without preventing those objects from being garbage collected when they are no longer needed. WeakMap behaves similarly to a regular associative ar...
khangnhd.hashnode.dev2 min read