Fully Qualified Name: | Zend\Json\Decoder |
Decode JSON encoded string to PHP variable constructs
Name | Description | Defined By |
---|---|---|
decode() | Decode a JSON source string. | Decoder |
decodeUnicodeString() | Decode Unicode Characters from \u0000 ASCII syntax. | Decoder |
Decode a JSON source string.
Decodes a JSON encoded string; the value returned will be one of the following:
By default, decoded objects will be returned as associative arrays; to return a stdClass object instead, pass {@link Json::TYPE_OBJECT} to the $objectDecodeType parameter.
Parameter Name | Type | Description |
---|---|---|
$source | string | String |
$objectDecodeType | int | How |
Returns: mixed
Decode Unicode Characters from \u0000 ASCII syntax.
This algorithm was originally developed for the Solar Framework by Paul M. Jones
Parameter Name | Type | Description |
---|---|---|
$chrs | string |
Returns: string