php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
json.stub.php File Reference

Go to the source code of this file.

Data Structures

interface  JsonSerializable
 
class  JsonException
 

Functions

 json_encode (mixed $value, int $flags=0, int $depth=512)
 
 json_decode (string $json, ?bool $associative=null, int $depth=512, int $flags=0)
 
 json_validate (string $json, int $depth=512, int $flags=0)
 
 json_last_error ()
 
 json_last_error_msg ()
 

Variables

const JSON_HEX_TAG = UNKNOWN
 
const JSON_HEX_AMP = UNKNOWN
 
const JSON_HEX_APOS = UNKNOWN
 
const JSON_HEX_QUOT = UNKNOWN
 
const JSON_FORCE_OBJECT = UNKNOWN
 
const JSON_NUMERIC_CHECK = UNKNOWN
 
const JSON_UNESCAPED_SLASHES = UNKNOWN
 
const JSON_PRETTY_PRINT = UNKNOWN
 
const JSON_UNESCAPED_UNICODE = UNKNOWN
 
const JSON_PARTIAL_OUTPUT_ON_ERROR = UNKNOWN
 
const JSON_PRESERVE_ZERO_FRACTION = UNKNOWN
 
const JSON_UNESCAPED_LINE_TERMINATORS = UNKNOWN
 
const JSON_OBJECT_AS_ARRAY = UNKNOWN
 
const JSON_BIGINT_AS_STRING = UNKNOWN
 
const JSON_INVALID_UTF8_IGNORE = UNKNOWN
 
const JSON_INVALID_UTF8_SUBSTITUTE = UNKNOWN
 
const JSON_THROW_ON_ERROR = UNKNOWN
 
const JSON_ERROR_NONE = UNKNOWN
 
const JSON_ERROR_DEPTH = UNKNOWN
 
const JSON_ERROR_STATE_MISMATCH = UNKNOWN
 
const JSON_ERROR_CTRL_CHAR = UNKNOWN
 
const JSON_ERROR_SYNTAX = UNKNOWN
 
const JSON_ERROR_UTF8 = UNKNOWN
 
const JSON_ERROR_RECURSION = UNKNOWN
 
const JSON_ERROR_INF_OR_NAN = UNKNOWN
 
const JSON_ERROR_UNSUPPORTED_TYPE = UNKNOWN
 
const JSON_ERROR_INVALID_PROPERTY_NAME = UNKNOWN
 
const JSON_ERROR_UTF16 = UNKNOWN
 
const JSON_ERROR_NON_BACKED_ENUM = UNKNOWN
 

Function Documentation

◆ json_decode()

json_decode ( string $json,
?bool $associative = null,
int $depth = 512,
int $flags = 0 )

Definition at line 157 of file json.stub.php.

◆ json_encode()

json_encode ( mixed $value,
int $flags = 0,
int $depth = 512 )

@refcount 1

Definition at line 155 of file json.stub.php.

◆ json_last_error()

json_last_error ( )

Definition at line 161 of file json.stub.php.

◆ json_last_error_msg()

json_last_error_msg ( )

@refcount 1

Definition at line 164 of file json.stub.php.

◆ json_validate()

json_validate ( string $json,
int $depth = 512,
int $flags = 0 )

Definition at line 159 of file json.stub.php.

Variable Documentation

◆ JSON_BIGINT_AS_STRING

const JSON_BIGINT_AS_STRING = UNKNOWN

Definition at line 75 of file json.stub.php.

◆ JSON_ERROR_CTRL_CHAR

const JSON_ERROR_CTRL_CHAR = UNKNOWN

Definition at line 112 of file json.stub.php.

◆ JSON_ERROR_DEPTH

const JSON_ERROR_DEPTH = UNKNOWN

Definition at line 102 of file json.stub.php.

◆ JSON_ERROR_INF_OR_NAN

const JSON_ERROR_INF_OR_NAN = UNKNOWN

Definition at line 132 of file json.stub.php.

◆ JSON_ERROR_INVALID_PROPERTY_NAME

const JSON_ERROR_INVALID_PROPERTY_NAME = UNKNOWN

Definition at line 142 of file json.stub.php.

◆ JSON_ERROR_NON_BACKED_ENUM

const JSON_ERROR_NON_BACKED_ENUM = UNKNOWN

Definition at line 152 of file json.stub.php.

◆ JSON_ERROR_NONE

const JSON_ERROR_NONE = UNKNOWN

Definition at line 97 of file json.stub.php.

◆ JSON_ERROR_RECURSION

const JSON_ERROR_RECURSION = UNKNOWN

Definition at line 127 of file json.stub.php.

◆ JSON_ERROR_STATE_MISMATCH

const JSON_ERROR_STATE_MISMATCH = UNKNOWN

Definition at line 107 of file json.stub.php.

◆ JSON_ERROR_SYNTAX

const JSON_ERROR_SYNTAX = UNKNOWN

Definition at line 117 of file json.stub.php.

◆ JSON_ERROR_UNSUPPORTED_TYPE

const JSON_ERROR_UNSUPPORTED_TYPE = UNKNOWN

Definition at line 137 of file json.stub.php.

◆ JSON_ERROR_UTF16

const JSON_ERROR_UTF16 = UNKNOWN

Definition at line 147 of file json.stub.php.

◆ JSON_ERROR_UTF8

const JSON_ERROR_UTF8 = UNKNOWN

Definition at line 122 of file json.stub.php.

◆ JSON_FORCE_OBJECT

const JSON_FORCE_OBJECT = UNKNOWN

Definition at line 29 of file json.stub.php.

◆ JSON_HEX_AMP

const JSON_HEX_AMP = UNKNOWN

Definition at line 14 of file json.stub.php.

◆ JSON_HEX_APOS

const JSON_HEX_APOS = UNKNOWN

Definition at line 19 of file json.stub.php.

◆ JSON_HEX_QUOT

const JSON_HEX_QUOT = UNKNOWN

Definition at line 24 of file json.stub.php.

◆ JSON_HEX_TAG

const JSON_HEX_TAG = UNKNOWN

Definition at line 9 of file json.stub.php.

◆ JSON_INVALID_UTF8_IGNORE

const JSON_INVALID_UTF8_IGNORE = UNKNOWN

Definition at line 81 of file json.stub.php.

◆ JSON_INVALID_UTF8_SUBSTITUTE

const JSON_INVALID_UTF8_SUBSTITUTE = UNKNOWN

Definition at line 86 of file json.stub.php.

◆ JSON_NUMERIC_CHECK

const JSON_NUMERIC_CHECK = UNKNOWN

Definition at line 34 of file json.stub.php.

◆ JSON_OBJECT_AS_ARRAY

const JSON_OBJECT_AS_ARRAY = UNKNOWN

Definition at line 70 of file json.stub.php.

◆ JSON_PARTIAL_OUTPUT_ON_ERROR

const JSON_PARTIAL_OUTPUT_ON_ERROR = UNKNOWN

Definition at line 54 of file json.stub.php.

◆ JSON_PRESERVE_ZERO_FRACTION

const JSON_PRESERVE_ZERO_FRACTION = UNKNOWN

Definition at line 59 of file json.stub.php.

◆ JSON_PRETTY_PRINT

const JSON_PRETTY_PRINT = UNKNOWN

Definition at line 44 of file json.stub.php.

◆ JSON_THROW_ON_ERROR

const JSON_THROW_ON_ERROR = UNKNOWN

Definition at line 91 of file json.stub.php.

◆ JSON_UNESCAPED_LINE_TERMINATORS

const JSON_UNESCAPED_LINE_TERMINATORS = UNKNOWN

Definition at line 64 of file json.stub.php.

◆ JSON_UNESCAPED_SLASHES

const JSON_UNESCAPED_SLASHES = UNKNOWN

Definition at line 39 of file json.stub.php.

◆ JSON_UNESCAPED_UNICODE

const JSON_UNESCAPED_UNICODE = UNKNOWN

Definition at line 49 of file json.stub.php.