Anemone::__construct()

The constructor.

Table of Contents
  1. Description
  2. Example

Description

Anemone::__construct(iterable $value = [], string $join = ', '): self;

This method will be called when you instantiate an Anemone class.

Example

$anemone = new Anemone([1, 2, 3, 4, 5]);

Anemone::__construct()

The constructor.

Anemone::any()

Checks if at least one item in the data passes the test.

Anemone::is()

Filters the data so that only items that pass the test are left.

Anemone::not()

Filters the data so that only items that do not pass the test are left.

Anemone::pluck()

Returns a new data set contains values from the key on every item.