Collection
Phenomine Collection class provides a simple way to interact with arrays. The Collection class is a wrapper around PHP arrays that provides a fluent interface for working with arrays. The Collection class allows you to chain multiple array operations together using a more readable syntax compared to traditional PHP arrays.
Creating a Collection
You may create a new collection using the collect
helper function. The collect
function returns a new Phenomine Collection instance for the given array: