php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
json.stub.php
Go to the documentation of this file.
1<?php
2
4
9const JSON_HEX_TAG = UNKNOWN;
14const JSON_HEX_AMP = UNKNOWN;
19const JSON_HEX_APOS = UNKNOWN;
24const JSON_HEX_QUOT = UNKNOWN;
29const JSON_FORCE_OBJECT = UNKNOWN;
34const JSON_NUMERIC_CHECK = UNKNOWN;
39const JSON_UNESCAPED_SLASHES = UNKNOWN;
44const JSON_PRETTY_PRINT = UNKNOWN;
49const JSON_UNESCAPED_UNICODE = UNKNOWN;
65
70const JSON_OBJECT_AS_ARRAY = UNKNOWN;
75const JSON_BIGINT_AS_STRING = UNKNOWN;
76
91const JSON_THROW_ON_ERROR = UNKNOWN;
92
97const JSON_ERROR_NONE = UNKNOWN;
102const JSON_ERROR_DEPTH = UNKNOWN;
112const JSON_ERROR_CTRL_CHAR = UNKNOWN;
117const JSON_ERROR_SYNTAX = UNKNOWN;
122const JSON_ERROR_UTF8 = UNKNOWN;
127const JSON_ERROR_RECURSION = UNKNOWN;
132const JSON_ERROR_INF_OR_NAN = UNKNOWN;
147const JSON_ERROR_UTF16 = UNKNOWN;
153
155function json_encode(mixed $value, int $flags = 0, int $depth = 512): string|false {}
156
157function json_decode(string $json, ?bool $associative = null, int $depth = 512, int $flags = 0): mixed {}
158
159function json_validate(string $json, int $depth = 512, int $flags = 0): bool {}
160
162
165
167{
169 public function jsonSerialize(): mixed;
170}
171
173{
174}
const JSON_FORCE_OBJECT
Definition json.stub.php:29
json_last_error()
const JSON_INVALID_UTF8_SUBSTITUTE
Definition json.stub.php:86
const JSON_ERROR_NONE
Definition json.stub.php:97
const JSON_HEX_AMP
Definition json.stub.php:14
const JSON_BIGINT_AS_STRING
Definition json.stub.php:75
const JSON_INVALID_UTF8_IGNORE
Definition json.stub.php:81
const JSON_ERROR_DEPTH
const JSON_ERROR_NON_BACKED_ENUM
const JSON_ERROR_CTRL_CHAR
const JSON_HEX_TAG
Definition json.stub.php:9
const JSON_ERROR_STATE_MISMATCH
const JSON_ERROR_UTF16
const JSON_ERROR_UTF8
json_validate(string $json, int $depth=512, int $flags=0)
const JSON_NUMERIC_CHECK
Definition json.stub.php:34
const JSON_ERROR_INVALID_PROPERTY_NAME
const JSON_UNESCAPED_SLASHES
Definition json.stub.php:39
json_encode(mixed $value, int $flags=0, int $depth=512)
const JSON_PARTIAL_OUTPUT_ON_ERROR
Definition json.stub.php:54
const JSON_UNESCAPED_UNICODE
Definition json.stub.php:49
const JSON_UNESCAPED_LINE_TERMINATORS
Definition json.stub.php:64
const JSON_ERROR_SYNTAX
const JSON_OBJECT_AS_ARRAY
Definition json.stub.php:70
const JSON_PRESERVE_ZERO_FRACTION
Definition json.stub.php:59
const JSON_ERROR_INF_OR_NAN
json_decode(string $json, ?bool $associative=null, int $depth=512, int $flags=0)
const JSON_PRETTY_PRINT
Definition json.stub.php:44
const JSON_ERROR_UNSUPPORTED_TYPE
const JSON_THROW_ON_ERROR
Definition json.stub.php:91
const JSON_ERROR_RECURSION
const JSON_HEX_APOS
Definition json.stub.php:19
const JSON_HEX_QUOT
Definition json.stub.php:24
json_last_error_msg()
function(EX_VAR(opline->result.var))