note 79865 added to function.array-shift

From: Date: Sun, 16 Dec 2007 20:33:44 +0000
Subject: note 79865 added to function.array-shift
Groups: php.notes 
Request: Send a blank email to php-notes+get-133717@lists.php.net to get a copy of this message
Doesn't a simple array_shift solve your problem? $dummy = array_shift($arr); And of course array_pop for the other array end. ;) ---- Server IP: 217.160.72.57 Probable Submitter: 80.55.234.130 ---- Manual Page -- http://www.php.net/manual/en/function.array-shift.php Edit -- https://master.php.net/note/edit/79865 Del: integrated -- https://master.php.net/note/delete/79865/integrated Del: useless -- https://master.php.net/note/delete/79865/useless Del: bad code -- https://master.php.net/note/delete/79865/bad+code Del: spam -- https://master.php.net/note/delete/79865/spam Del: non-english -- https://master.php.net/note/delete/79865/non-english Del: in docs -- https://master.php.net/note/delete/79865/in+docs Del: other reasons-- https://master.php.net/note/delete/79865 Reject -- https://master.php.net/note/reject/79865 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#133717) next »