note 87002 added to function.array-slice

From: Date: Fri, 14 Nov 2008 10:11:37 +0000
Subject: note 87002 added to function.array-slice
Groups: php.notes 
Request: Send a blank email to php-notes+get-146517@lists.php.net to get a copy of this message
Note that offset is not the same thing as key. Offset always starts at 0, while keys might be any number. So this: print_r (array_slice(array(0 => 0, 5 => 5, 13 => 13),1)); will result in this: Array ( [0] => 5 [1] => 13 ) ---- Server IP: 208.69.120.35 Probable Submitter: 217.162.13.98 ---- Manual Page -- http://www.php.net/manual/en/function.array-slice.php Edit -- https://master.php.net/note/edit/87002 Del: integrated -- https://master.php.net/note/delete/87002/integrated Del: useless -- https://master.php.net/note/delete/87002/useless Del: bad code -- https://master.php.net/note/delete/87002/bad+code Del: spam -- https://master.php.net/note/delete/87002/spam Del: non-english -- https://master.php.net/note/delete/87002/non-english Del: in docs -- https://master.php.net/note/delete/87002/in+docs Del: other reasons-- https://master.php.net/note/delete/87002 Reject -- https://master.php.net/note/reject/87002 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#146517) next »