|
SplHeap::compareCompare elements in order to place them correctly in the heap while sifting up Description
protected int SplHeap::compare(mixed
$value1 , mixed $value2 )
Compare Warning
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. Parameters
Return Values
Result of the comparison, positive integer if
|