Re: docs request
| From: | Hojtsy Gabor | Date: | Sat, 10 Nov 2001 18:02:12 +0000 |
| Subject: | Re: docs request | ||
| References: | 1 2 3 4 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969338622@lists.php.net to get a copy of this message | ||
> Also, am I right, thinking that the array_chunk
> function is no more than returning a begining
> part of an array, with the number of elements
> provided? Am I right? Or it is something more?
> I can only see this simple functionality in the
> source...
Isn't
array_chunk($array, 2, TRUE);
the same as
array_slice($array, 0, 2);
OK, it is not completely the same, as you
cannot choose "do not preserve keys" while
using array_slice(). Wouldn't it be better to
extend array_slice() with another parameter,
or something like that...
These functions seem to me nearly the same
(except of key preservation).
Goba