/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/Collection
NameSizeModeActions
Iterator/-0755rm
Collection.php32190644editdlrm
CollectionInterface.php424270644editdlrm
CollectionTrait.php283640644editdlrm
composer.json9560644editdlrm
ExtractTrait.php44450644editdlrm
functions.php10880644editdlrm
LICENSE.txt12040644editdlrm
README.md11770644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/Collection/README.md (1177B)
[![Total Downloads](https://img.shields.io/packagist/dt/cakephp/collection.svg?style=flat-square)](https://packagist.org/packages/cakephp/collection) [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE.txt) # CakePHP Collection Library The collection classes provide a set of tools to manipulate arrays or Traversable objects. If you have ever used underscore.js, you have an idea of what you can expect from the collection classes. ## Usage Collections can be created using an array or Traversable object. A simple use of a Collection would be: ```php use Cake\Collection\Collection; $items = ['a' => 1, 'b' => 2, 'c' => 3]; $collection = new Collection($items); // Create a new collection containing elements // with a value greater than one. $overOne = $collection->filter(function ($value, $key, $iterator) { return $value > 1; }); ``` The `Collection\CollectionTrait` allows you to integrate collection-like features into any Traversable object you have in your application as well. ## Documentation Please make sure you check the [official documentation](https://book.cakephp.org/4/en/core-libraries/collections.html)