|
SplHeap::compareCompare elements in order to place them correctly in the heap while sifting up. Beschreibung
abstract protected int SplHeap::compare
( mixed
$value1
, mixed $value2
)
Compare Warnung
Throwing exceptions in SplHeap::compare can corrupt the Heap and place it in a blocked state. You can unblock it by calling SplHeap::recoverFromCorruption. However, some elements might not be placed correctly and it may hence break the heap-property. Parameter-Liste
Rückgabewerte
Result of the comparison, positive integer if
|