Json
in package
A static class to wrap JSON encoding/decoding with PsySH's default options.
Table of Contents
- encode() : string
- Encode a value as JSON.
Methods
encode()
Encode a value as JSON.
public
static encode(mixed $val, int $opt) : string
Parameters
- $val : mixed
- $opt : int