Anemone::__serialize()

Provides data to be serialized.

Table of Contents
  1. Description
  2. Example

Description

Anemone::__serialize(): array;

This method will be called when an Anemone instance is serialized using the built-in PHP serialize() function.

Example

$anemone = new Anemone([1, 'a', true]);

echo serialize($anemone); // Returns `'O:7:"Anemone":4:{s:4:"join";s:2:", ";s:3:"lot";a:3:{i:0;i:1;i:1;s:1:"a";i:2;b:1;}s:6:"parent";N;s:5:"value";a:3:{i:0;i:1;i:1;s:1:"a";i:2;b:1;}}'`

Anemone::__serialize()

Provides data to be serialized.

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.