note 112946 added to function.array-pop

From: Date: Sat, 10 Aug 2013 18:45:46 +0000
Subject: note 112946 added to function.array-pop
Groups: php.notes 
Request: Send a blank email to php-notes+get-195927@lists.php.net to get a copy of this message
Notice: the complexity of array_pop() is O(1). the complexity of array_shift() is O(n). array_shift() requires a re-index process on the array, so it has to run over all the elements and index them. ---- Server IP: 69.147.83.199 Probable Submitter: 79.180.143.227 ---- Manual Page -- http://php.net/manual/en/function.array-pop.php Edit -- https://master.php.net/note/edit/112946 Del: integrated -- https://master.php.net/note/delete/112946/integrated Del: useless -- https://master.php.net/note/delete/112946/useless Del: bad code -- https://master.php.net/note/delete/112946/bad+code Del: spam -- https://master.php.net/note/delete/112946/spam Del: non-english -- https://master.php.net/note/delete/112946/non-english Del: in docs -- https://master.php.net/note/delete/112946/in+docs Del: other reasons-- https://master.php.net/note/delete/112946 Reject -- https://master.php.net/note/reject/112946 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#195927) next »