note 115274 added to class.splheap
| From: | igorsantos07 at gmail dot com | Date: | Thu, 26 Jun 2014 01:02:20 +0000 |
| Subject: | note 115274 added to class.splheap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199765@lists.php.net to get a copy of this message | ||
While Michelangelo Van Dam example (http://br2.php.net/manual/en/class.splheap.php#93930) is a great
demonstration of what can be done with SplHeap, this implementation is exactly what SplPriorityQueue
does - based on SplMaxHeap. If you're planning to copy that snippet, go no further!
There's a SPL class that does exactly what you want :)
----
Server IP: 187.73.33.55
Probable Submitter: 177.19.158.60
----
Manual Page -- http://php.net/manual/en/class.splheap.php
Edit -- https://master.php.net/note/edit/115274
Del: integrated -- https://master.php.net/note/delete/115274/integrated
Del: useless -- https://master.php.net/note/delete/115274/useless
Del: bad code -- https://master.php.net/note/delete/115274/bad+code
Del: spam -- https://master.php.net/note/delete/115274/spam
Del: non-english -- https://master.php.net/note/delete/115274/non-english
Del: in docs -- https://master.php.net/note/delete/115274/in+docs
Del: other reasons-- https://master.php.net/note/delete/115274
Reject -- https://master.php.net/note/reject/115274
Search -- https://master.php.net/manage/user-notes.php