php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #34220 www.php.net/types.array section Example 11-8. Collection
Submitted: 2005-08-23 16:25 UTC Modified: 2005-09-02 14:32 UTC
From: nnbaran at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: irrelevant
Private report: No CVE-ID: None
 [2005-08-23 16:25 UTC] nnbaran at gmail dot com
Description:
------------
Example 11-8. Collection on www.php.net/types.array:

"Note that it is currently not possible to change the values of the array directly in such a loop. A workaround is the following:"

the loop it's referring to is a foreach loop and as of php 5 it is possible, as documented in http://www.php.net/foreach


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-02 14:32 UTC] vrana@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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Sep 14 17:00:01 2025 UTC