> 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