php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64900 Chunk size is number of elements in each chunk
Submitted: 2013-05-22 11:48 UTC Modified: 2013-10-23 08:48 UTC
From: hugh dot prior at skynet dot be Assigned: krakjoe (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.4.15 OS: All
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hugh dot prior at skynet dot be
New email:
PHP Version: OS:

 

 [2013-05-22 11:48 UTC] 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-23 08:47 UTC] 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-10-23 08:48 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2013-10-23 08:48 UTC] krakjoe@php.net
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 ...
 [2013-10-23 09:16 UTC] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=331927
Log: #64900 clarity
 [2013-10-25 14:57 UTC] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=331964
Log: revert for #64900
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 14:00:01 2026 UTC