php8.5
Home/ Manual/ predefined / weakmap/ WeakMap::count

WeakMap::count

PHP function Edit on GitHub ✎

(PHP 8)

Counts the number of live entries in the map

Description

WeakMap::count(): int

Counts the number of live entries in the map.

Parameters Parameters

Return Values

Returns the number of live entries in the map.

Source: language/predefined/weakmap/count.xml · from the official PHP manual (php/doc-en)