#31697 [Opn]: foreach doc doesn't mention object-iteration
| From: | jed@php.net | Date: | Wed, 26 Jan 2005 00:09:13 +0000 |
| Subject: | #31697 [Opn]: foreach doc doesn't mention object-iteration | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969366177@lists.php.net to get a copy of this message | ||
ID: 31697
Updated by: jed@php.net
Reported By: tularis@php.net
Status: Open
Bug Type: Documentation problem
Operating System: n/a
PHP Version: Irrelevant
Assigned To: tularis
New Comment:
It's mentioned in the PHP 5 docs, and includes implementing Iterator
from the SPL.
http://www.php.net/manual/en/language.oop5.iterations.php
I think the general rule is place things where it doesn't seem like
they'd be, since PHP 5 is so radically different it deserves its own
manual section, and the rest of the manual isn't clear on what PHP 4
and PHP 5 is anymore.
Previous Comments:
------------------------------------------------------------------------
[2005-01-25 23:51:07] tularis@php.net
assigning to myself (so I don't forget)
------------------------------------------------------------------------
[2005-01-25 23:50:42] tularis@php.net
Description:
------------
The foreach documentation page doesn't mention the fact that foreach
can also be used to iterate trough an object's properties.
Reproduce code:
---------------
-
Expected result:
----------------
foreach contains a notice about objects
Actual result:
--------------
none
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31697&edit=1