Open In App

PHP SplPriorityQueue next() Function

Last Updated : 22 Apr, 2021
Comments
Improve
Suggest changes
Like Article
Like
Report

The SplPriorityQueue::next() function is an inbuilt function in PHP that is used to extract the top node from the queue. 

Syntax:

void SplPriorityQueue::next()
Parameters: This function does not accept any parameter. Return Value: This function does not return any value.  

Example:


Output
G G4G Geeks GFG 

Reference: https://www.php.net/manual/en/splpriorityqueue.next.php


Next Article

Similar Reads