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
 
<SplHeap::compareSplHeap::current>
^SplHeapLast updated: Mon, 26 Oct 2026

SplHeap::count

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

SplHeap::count — Counts the number of elements in the heap

Description

public function SplHeap::count(): int

Parameters

This function has no parameters.

Return Values

Returns the number of elements in the heap.


<SplHeap::compareSplHeap::current>
^SplHeapLast updated: Mon, 26 Oct 2026