note 73284 added to function.array-slice
| From: | Apware at osu1 dot php dot net | Date: | Fri, 16 Feb 2007 00:34:39 +0000 |
| Subject: | note 73284 added to function.array-slice | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123472@lists.php.net to get a copy of this message | ||
A simple test of this function:
<?php
print_r(array_slice(array('a','b','c','d'), 0, 3)); //
normal behaviour
print_r(array_slice(array('a','b','c','d'), 0, 10)); //
result: no error, returns as many as possible
print_r(array_slice(array(), 0, 10)); // result: no error, returns empty array
?>
----
Server IP: 194.145.210.3
Probable Submitter: 86.131.81.113
----
Manual Page -- http://www.php.net/manual/en/function.array-slice.php
Edit -- https://master.php.net/note/edit/73284
Del: integrated -- https://master.php.net/note/delete/73284/integrated
Del: useless -- https://master.php.net/note/delete/73284/useless
Del: bad code -- https://master.php.net/note/delete/73284/bad+code
Del: spam -- https://master.php.net/note/delete/73284/spam
Del: non-english -- https://master.php.net/note/delete/73284/non-english
Del: in docs -- https://master.php.net/note/delete/73284/in+docs
Del: other reasons-- https://master.php.net/note/delete/73284
Reject -- https://master.php.net/note/reject/73284
Search -- https://master.php.net/manage/user-notes.php