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::currentSplHeap::insert>
^SplHeapLast updated: Mon, 26 Oct 2026

SplHeap::extract

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

SplHeap::extract — Extracts a node from top of the heap and sift up

Description

public function SplHeap::extract(): mixed

Parameters

This function has no parameters.

Return Values

The value of the extracted node.

Errors/Exceptions

Throws RuntimeException when the data-structure is empty.


<SplHeap::currentSplHeap::insert>
^SplHeapLast updated: Mon, 26 Oct 2026