class JsonFormatter implements FormatterInterface

Methods

__construct(bool $assoc = true)

No description

string
encode(mixed $data)

Encode data into a string.

mixed
decode(string $data)

Decode a string into data.

Details

at line 14
__construct(bool $assoc = true)

Parameters

bool $assoc

at line 22
string encode(mixed $data)

Encode data into a string.

Parameters

mixed $data

Return Value

string

at line 36
mixed decode(string $data)

Decode a string into data.

Parameters

string $data

Return Value

mixed