(PHP 5 >= 5.3.0)
The SplPriorityQueue class provides the main functionalities of an prioritized queue, implemented using a heap.
$priority1
$priority2
$value
$priority
$flags