Previous Page
dump()

Solar_Json
encode()

Next Page
locale()

encode()

public string encode ( mixed $valueToEncode, array $deQuote default array () )

Encodes the mixed $valueToEncode into JSON format.

Parameters

  • (mixed) $valueToEncode: Value to be encoded into JSON format
  • (array) $deQuote: Array of keys whose values should not be quoted in encoded string.

Returns

  • (string) JSON encoded value

Description

Encodes the mixed $valueToEncode into JSON format.