Previous Page
_json_decode()

Solar_Json
_json_encode()

Next Page
_name_value()

_json_encode()

protected mixed _json_encode ( mixed $var )

Encodes the mixed $valueToEncode into the JSON format, without use of native PHP json extension.

Parameters

  • (mixed) $var: Any number, boolean, string, array, or object to be encoded. Strings are expected to be in ASCII or UTF-8 format.

Returns

  • (mixed) JSON string representation of input value

Description

Encodes the mixed $valueToEncode into the JSON format, without use of native PHP json extension.