json_decode_with_error
Like json_decode, but includes json_last_error(_msg) results
function json_decode_with_error(
string $json,
inout ?(int, string) $error,
bool $assoc = false,
int $depth = 512,
int $options = 0,
): mixed;
Parameters
string $json
inout ?(int, string) $error
bool $assoc = false
int $depth = 512
int $options = 0
Returns
mixed