Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<WeakMapWeakMap::getIterator>
^WeakMapLast updated: Mon, 26 Oct 2026

WeakMap::count

(PHP 8)

WeakMap::count — Counts the number of live entries in the map

Description

public function WeakMap::count(): int

Counts the number of live entries in the map.

Parameters

This function has no parameters.

Return Values

Returns the number of live entries in the map.


<WeakMapWeakMap::getIterator>
^WeakMapLast updated: Mon, 26 Oct 2026