note 115950 added to function.array-slice
| From: | fraterjan at gmail dot com | Date: | Sat, 18 Oct 2014 10:14:33 +0000 |
| Subject: | note 115950 added to function.array-slice | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200676@lists.php.net to get a copy of this message | ||
To make sure numerical key values for associative arrays are not converted to integers set
$preserve_keys = true.
Example:
$slice = array_slice($array, 0, 3, $preserve_keys = true);
----
Server IP: 72.52.91.14
Probable Submitter: 212.187.1.118
----
Manual Page -- http://php.net/manual/en/function.array-slice.php
Edit -- https://master.php.net/note/edit/115950
Del: integrated -- https://master.php.net/note/delete/115950/integrated
Del: useless -- https://master.php.net/note/delete/115950/useless
Del: bad code -- https://master.php.net/note/delete/115950/bad+code
Del: spam -- https://master.php.net/note/delete/115950/spam
Del: non-english -- https://master.php.net/note/delete/115950/non-english
Del: in docs -- https://master.php.net/note/delete/115950/in+docs
Del: other reasons-- https://master.php.net/note/delete/115950
Reject -- https://master.php.net/note/reject/115950
Search -- https://master.php.net/manage/user-notes.php