public
static
|
decode(string $json, bool $associative = false, int $depth = 512, int $flags = 0): mixed
Takes a JSON encoded string and converts it into a PHP variable.
Parameters
$json |
The JSON string being decoded.
|
$associative |
When TRUE, returned objects will be converted into associative arrays.
|
$depth |
User specified recursion depth.
|
$flags |
Bitmask of JSON decode options.
|
Throws
ngatngay\SyntaxError |
if the JSON encoded string could not be parsed.
|
|
#
|