note 34864 added to function.array-slice
| From: | programmer at bardware dot de | Date: | Fri, 08 Aug 2003 21:01:25 +0000 |
| Subject: | note 34864 added to function.array-slice | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-53670@lists.php.net to get a copy of this message | ||
Hi zan at stargeek dot com,
I have an array with a zero based integer index. There's only one item in the array, with index
0.
I used your function to return 5 items from the beginning of the array, and it did not return 1
since there is only one, or 5 since I requested 5, but 2. There's an error in your script.
Best,
Benrhard
----
Manual Page -- http://www.php.net/manual/en/function.array-slice.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34864
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34864&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34864&report=yes