Doc #64900 [Opn->Csd]: Chunk size is number of elements in each chunk

From: Date: Wed, 23 Oct 2013 08:48:01 +0000
Subject: Doc #64900 [Opn->Csd]: Chunk size is number of elements in each chunk
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10533@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64900&edit=1 ID: 64900 Updated by: krakjoe@php.net Reported by: hugh dot prior at skynet dot be Summary: Chunk size is number of elements in each chunk -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: All PHP Version: 5.4.15 -Assigned To: +Assigned To: krakjoe Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Reworded, worth noting that there is a more precise description for return values, I think we were DRY'ing ... still, reworded ... Previous Comments: ------------------------------------------------------------------------ [2013-10-23 08:47:20] krakjoe@php.net Automatic comment from SVN on behalf of krakjoe Revision: http://svn.php.net/viewvc/?view=revision&revision=331925 Log: #64900 fix array_chunk description ------------------------------------------------------------------------ [2013-05-22 11:48:39] hugh dot prior at skynet dot be Description: ------------ --- From manual page: http://www.php.net/function.array-chunk#refsect1- function.array-chunk-description --- The text says "Chunks an array into size large chunks". I don't think this is correct. I think it actually "Chunks an array into chunks each of which has size elements." e.g. if I have an array with 100 items, and I say array_chunk($input, 5) then the function will, I think, return 20 arrays each with 5 elements. The text as is currently written would therefore read "Chunks an array into 5 large chunks". This is not true: there are 20 chunks, not 5. "Chunks an array into chunks each of which has 5 elements." c.f. http://www.w3schools.com/php/func_array_chunk.asp ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64900&edit=1

« previous php.doc.bugs (#10533) next »