note 124650 added to class.splminheap

From: Date: Mon, 27 Jan 2020 07:12:17 +0000
Subject: note 124650 added to class.splminheap
Groups: php.notes 
Request: Send a blank email to php-notes+get-213962@lists.php.net to get a copy of this message
I experimented what happens when arrays are inserted: <?php $heap = new SplMinHeap(); $heap->insert([22,333]); $heap->insert([2,33]); $heap->insert([222,3]); var_export($heap->extract()); echo '<br>'; var_export($heap->extract()); echo '<br>'; var_export($heap->extract()); ?> Output: array ( 0 => 2, 1 => 33, ) array ( 0 => 22, 1 => 333, ) array ( 0 => 222, 1 => 3, ) ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.195 (proxied: 14.142.195.90) ---- Manual Page -- http://php.net/manual/en/class.splminheap.php Edit -- https://master.php.net/note/edit/124650 Del: integrated -- https://master.php.net/note/delete/124650/integrated Del: useless -- https://master.php.net/note/delete/124650/useless Del: bad code -- https://master.php.net/note/delete/124650/bad+code Del: spam -- https://master.php.net/note/delete/124650/spam Del: non-english -- https://master.php.net/note/delete/124650/non-english Del: in docs -- https://master.php.net/note/delete/124650/in+docs Del: other reasons-- https://master.php.net/note/delete/124650 Reject -- https://master.php.net/note/reject/124650 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#213962) next »