Download the PHP package bentools/flatten-iterator without Composer
On this page you can find all versions of the php package bentools/flatten-iterator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bentools/flatten-iterator
More information about bentools/flatten-iterator
Files in bentools/flatten-iterator
Download bentools/flatten-iterator
More information about bentools/flatten-iterator
Files in bentools/flatten-iterator
Vendor bentools
Package flatten-iterator
Short Description Flattens Traversable or arrays into one iterator.
License MIT
Package flatten-iterator
Short Description Flattens Traversable or arrays into one iterator.
License MIT
Please rate this library. Is it a good library?
Informations about the package flatten-iterator
FlattenIterator
Flattens arrays and / or traversables. Accepts any iterable
composed of iterables
.
PHP 7.1+
Usage
Output:
Array output and fluent interface
You can use the built-in function to generate your flattened data, and export them as an array:
Output:
Preserve Keys
Set $preserveKeys
to true
to preserve keys in your flattened data:
Output:
Installation
Unit tests
See also
All versions of flatten-iterator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package bentools/flatten-iterator contains the following files
Loading the files please wait ....