Doc #76250 [NEW]: Better Documentation Description - ArrayIterator Class

From: Date: Mon, 23 Apr 2018 03:04:35 +0000
Subject: Doc #76250 [NEW]: Better Documentation Description - ArrayIterator Class
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15620@lists.php.net to get a copy of this message
From: bonnevillessei67 at hotmail dot com Operating system: Windows PHP version: 7.0.29 Package: Documentation problem Bug Type: Documentation Problem Bug description:Better Documentation Description - ArrayIterator Class Description: ------------ A strong suggestion to change the wording on this page. http://php.net/manual/en/class.arrayiterator.php This statement caused me to pull my hair out for three days to understand what is being said. "When you want to iterate over the same array multiple times you need to instantiate ArrayObject and let it create ArrayIterator instances that refer to it either by using foreach or by calling its getIterator() method manually." This is a much better explanation of how ArrayObject and ArrayIterator work together. "ArrayObject cannot be iterated when you use it in foreach it creates an ArrayIterator object internally" Scroll down to "Comparing ArrayObject vs ArrayIterator" in this Stackoverflow link for context. https://stackoverflow.com/questions/10502719/difference-between-arrayiterator-arrayobject-and-array-in-php -- Edit bug report at https://bugs.php.net/bug.php?id=76250&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76250&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76250&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76250&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76250&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76250&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76250&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76250&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76250&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76250&r=support Expected behavior: https://bugs.php.net/fix.php?id=76250&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76250&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76250&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76250&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76250&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76250&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76250&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76250&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76250&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76250&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76250&r=mysqlcfg

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