Anemone::count()

Counts the amount of data.

Table of Contents
  1. Description
  2. Example

Description

Anemone::count(): int;

This method is a requirement to be able to implement the Countable interface and aims to make the object countable via the count() function. This method is public, so it can also be called as how you would call any public methods in general.

Example

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

test($anemone->count()); // Returns `5`
test(count($anemone)); // Returns `5`

Anemone::any()

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

Anemone::count()

Counts the amount of data.

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.