note 117067 added to class.splpriorityqueue
| From: | RyanYoosefi | Date: | Thu, 09 Apr 2015 23:19:51 +0000 |
| Subject: | note 117067 added to class.splpriorityqueue | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-202221@lists.php.net to get a copy of this message | ||
Insertion order is not maintained for the same priority level when extracting.
<?php
$q = new SplPriorityQueue;
$q->insert('foo',0);
$q->insert('bar',0);
$q->insert('baz',0);
var_dump($q->extract());
var_dump($q->extract());
var_dump($q->extract());
?>
Results in:
string(3) "foo"
string(3) "baz"
string(3) "bar"
----
Server IP: 72.52.91.14
Probable Submitter: 24.10.13.245
----
Manual Page -- http://php.net/manual/en/class.splpriorityqueue.php
Edit -- https://master.php.net/note/edit/117067
Del: integrated -- https://master.php.net/note/delete/117067/integrated
Del: useless -- https://master.php.net/note/delete/117067/useless
Del: bad code -- https://master.php.net/note/delete/117067/bad+code
Del: spam -- https://master.php.net/note/delete/117067/spam
Del: non-english -- https://master.php.net/note/delete/117067/non-english
Del: in docs -- https://master.php.net/note/delete/117067/in+docs
Del: other reasons-- https://master.php.net/note/delete/117067
Reject -- https://master.php.net/note/reject/117067
Search -- https://master.php.net/manage/user-notes.php