SplPriorityQueue::valid

(PHP 5 >= 5.3.0, PHP 7) Check whether the queue contains more nodes public bool SplPriorityQueue::valid ( void ) Checks if the queue contains any more nodes. Returns: Returns TRUE if the queue contains any more nodes, FALSE otherwise.

SplPriorityQueue::key

(PHP 5 >= 5.3.0, PHP 7) Return current node index public mixed SplPriorityQueue::key ( void ) This function returns the current node index Returns: The current node index.

SplPriorityQueue::recoverFromCorruption

(PHP 5 >= 5.3.0, PHP 7) Recover from the corrupted state and allow further actions on the queue. public void SplPriorityQueue::recoverFromCorruption ( void ) Returns: No value is returned.

SplPriorityQueue::rewind

(PHP 5 >= 5.3.0, PHP 7) Rewind iterator back to the start (no-op) public void SplPriorityQueue::rewind ( void ) This rewinds the iterator to the beginning. This is a no-op for heaps as the iterator is virtual and in fact never moves from the top of the heap. Returns: No value is returned.

SplPriorityQueue::next

(PHP 5 >= 5.3.0, PHP 7) Move to the next node public void SplPriorityQueue::next ( void ) Extracts the top node from the queue. Returns: No value is returned.

SplPriorityQueue::extract

(PHP 5 >= 5.3.0, PHP 7) Extracts a node from top of the heap and sift up. public mixed SplPriorityQueue::extract ( void ) Returns: The value or priority (or both) of the extracted node, depending on the extract flag.

SplPriorityQueue::__construct

(PHP 5 >= 5.3.0, PHP 7) Constructs a new empty queue public SplPriorityQueue::__construct ( void ) This constructs a new empty queue. Returns: No value is returned.

SplPriorityQueue::insert

(PHP 5 >= 5.3.0, PHP 7) Inserts an element in the queue by sifting it up. public void SplPriorityQueue::insert ( mixed $value, mixed $priority ) Insert value with the priority priority in the queue. Parameters: value The value to insert. priority The associated priority. Returns: No value is returned.

SplPriorityQueue::count

(PHP 5 >= 5.3.0, PHP 7) Counts the number of elements in the queue. public int SplPriorityQueue::count ( void ) Returns: Returns the number of elements in the queue.

SplPriorityQueue::isEmpty

(PHP 5 >= 5.3.0, PHP 7) Checks whether the queue is empty. public bool SplPriorityQueue::isEmpty ( void ) Returns: Returns whether the queue is empty.