LOG IN
BEGINNER GUIDES
|
PHP CLASSES
|
CODE SEARCH
|
ARTICLES SEARCH
|
PHP FORUMS
|
PHP MANUAL
|
PHP FUNCTIONS LIST
|
WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles
Submit Your Code
SEO Monitor
UpTime Monitor
PHP Code Contest
My Favorite Examples
My Favorite Articles
Update Your Profile
More Weber Sites
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
Recommended Links
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Recommended
Submit Site
Forex Trading
Online forex trading platform
The SplMinHeap class
SplMaxHeap::compare
SplMinHeap::compare
SPL
PHP Manual
The SplMinHeap class
Introduction
The SplMinHeap class provides the main functionalities of a heap, keeping the minimum on the top.
Class synopsis
SplMinHeap
SplMinHeap
extends
SplHeap
implements
Iterator
,
Countable
{
/* Methods */
void
SplMinHeap::compare
(
mixed
$value1
,
mixed
$value2
)
/* Inherited methods */
abstract
int
SplHeap::compare
(
mixed
$value1
,
mixed
$value2
)
int
SplHeap::count
(
void
)
mixed
SplHeap::current
(
void
)
mixed
SplHeap::extract
(
void
)
void
SplHeap::insert
(
mixed
$value
)
bool
SplHeap::isEmpty
(
void
)
mixed
SplHeap::key
(
void
)
void
SplHeap::next
(
void
)
void
SplHeap::recoverFromCorruption
(
void
)
void
SplHeap::rewind
(
void
)
mixed
SplHeap::top
(
void
)
bool
SplHeap::valid
(
void
)
}
Table of Contents
SplMinHeap::compare
— Compare elements in order to place them correctly in the heap while sifting up.
SplMaxHeap::compare
SplMinHeap::compare
SPL
PHP Manual