Anemone::__unserialize()

Converts the serialized data back to its object.

Table of Contents
  1. Description
  2. Example

Description

Anemone::__unserialize(array $lot): void;

This method will be called when the serialized data is successfully returned into an Anemone instance using the built-in PHP unserialize() function.

Example

$anemone = unserialize('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;}}');

echo $anemone->first(); // Returns `1`

Anemone::__unserialize()

Converts the serialized data back to its object.

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.