SerializerInterface
in
Table of Contents
Methods
- serialize() : string|bool
- Serialize data into string.
- unserialize() : string|int|float|bool|array<string|int, mixed>|null
- Unserialize the given string.
Methods
serialize()
Serialize data into string.
public
serialize(string|int|float|bool|array<string|int, mixed>|null $data) : string|bool
Parameters
- $data : string|int|float|bool|array<string|int, mixed>|null
Tags
Return values
string|boolunserialize()
Unserialize the given string.
public
unserialize(string $string) : string|int|float|bool|array<string|int, mixed>|null
Parameters
- $string : string