Doc #64900 [NEW]: Chunk size is number of elements in each chunk
| From: | hugh dot prior at skynet dot be | Date: | Wed, 22 May 2013 11:48:39 +0000 |
| Subject: | Doc #64900 [NEW]: Chunk size is number of elements in each chunk | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9865@lists.php.net to get a copy of this message | ||
From: hugh dot prior at skynet dot be
Operating system: All
PHP version: 5.4.15
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Chunk size is number of elements in each chunk
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 bug report at https://bugs.php.net/bug.php?id=64900&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64900&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64900&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64900&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64900&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64900&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64900&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64900&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64900&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64900&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64900&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=64900&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=64900&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64900&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64900&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64900&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64900&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64900&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64900&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64900&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64900&r=mysqlcfg