Meilisearch PHP | Documentation

SerializerInterface

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
throws
JsonEncodingException
Return values
string|bool

unserialize()

Unserialize the given string.

public unserialize(string $string) : string|int|float|bool|array<string|int, mixed>|null
Parameters
$string : string
Tags
throws
JsonDecodingException
Return values
string|int|float|bool|array<string|int, mixed>|null

        
On this page

Search results