Req #63049 [Opn]: iterator_to_array for recursive iterators
| From: | datibbaw@php.net | Date: | Fri, 21 Dec 2012 10:29:57 +0000 |
| Subject: | Req #63049 [Opn]: iterator_to_array for recursive iterators | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-175522@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63049&edit=1
ID: 63049
Updated by: datibbaw@php.net
Reported by: franssen dot roland at gmail dot com
Summary: iterator_to_array for recursive iterators
Status: Open
Type: Feature/Change Request
Package: SPL related
Operating System: Ubuntu
PHP Version: 5.4.6
Block user comment: N
Private report: N
New Comment:
Why not just do this instead?
iterator_to_array(new RecursiveIteratorIterator($it));
Previous Comments:
------------------------------------------------------------------------
[2012-09-09 12:14:49] franssen dot roland at gmail dot com
Description:
------------
It would be nice to have a recursive_iterator_to_array function to transform a \RecursiveIterator to
a full recursive array...
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63049&edit=1