note 69148 added to function.array-slice

From: Date: Thu, 24 Aug 2006 20:08:59 +0000
Subject: note 69148 added to function.array-slice
Groups: php.notes 
Request: Send a blank email to php-notes+get-116279@lists.php.net to get a copy of this message
In response to the problem mentioned in the previous post (no name 06-May-2006 12:21) the following is a working solution: $myarray = array_slice($myarray, 1, count($myarray), true); It is too bad that the "preserve_keys" option is not available for the array_shift and array_pop functions as this would be somewhat simpler. ---- Server IP: 66.163.161.117 Probable Submitter: 209.239.12.115 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.array-slice.php Edit -- https://master.php.net/note/edit/69148 Del: integrated -- https://master.php.net/note/delete/69148/integrated Del: useless -- https://master.php.net/note/delete/69148/useless Del: bad code -- https://master.php.net/note/delete/69148/bad+code Del: spam -- https://master.php.net/note/delete/69148/spam Del: non-english -- https://master.php.net/note/delete/69148/non-english Del: in docs -- https://master.php.net/note/delete/69148/in+docs Del: other reasons-- https://master.php.net/note/delete/69148 Reject -- https://master.php.net/note/reject/69148 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116279) next »