Please wait while we load your page...
 

Announcements

PHP Manual :: The SplHeap class



SplQueue::setIteratorMode || SplHeap::compare || Datastructures || PHP Manual

(PHP 5 >= 5.3.0, PHP 7)

The SplHeap class provides the main functionalities of a Heap.

abstract SplHeap implements Iterator , Countable {
/* Methods */
public __construct ( void )
abstract protected int compare ( mixed $value1 , mixed $value2 )
public int count ( void )
public mixed current ( void )
public mixed extract ( void )
public void insert ( mixed $value )
public bool isEmpty ( void )
public mixed key ( void )
public void next ( void )
public void recoverFromCorruption ( void )
public void rewind ( void )
public mixed top ( void )
public bool valid ( void )
}


SplQueue::setIteratorMode || SplHeap::compare || Datastructures || PHP Manual
Live Chat Not Available