WeakMap::count

(PHP 8)

WeakMap::count統計 map 中存活實體的數量

說明

public WeakMap::count(): int

統計 map 中存活實體的數量。

參數

此函數沒有參數。

返回值

返回 map 中存活實體的數量。