php8.5
Home/ Manual/ spl / splheap/ SplHeap::count

SplHeap::count

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Counts the number of elements in the heap

Description

SplHeap::count(): int

Parameters Parameters

Return Values

Returns the number of elements in the heap.

Source: reference/spl/splheap/count.xml · from the official PHP manual (php/doc-en)