JSONFormatter
in package
implements
FormatterInterface
JSON data formatter
Tags
Table of Contents
Interfaces
- FormatterInterface
- Formatter interface
Methods
- format() : false|string
- Takes the given data and formats it.
Methods
format()
Takes the given data and formats it.
public
format(array<string|int, mixed>|bool|float|int|object|string|null $data) : false|string
Parameters
- $data : array<string|int, mixed>|bool|float|int|object|string|null
Return values
false|string —(JSON string | false)