(PECL getdns >= 0.10.0)
php_getdns_print_json_dict — Creates a JSON-formatted character string representation of a dictionary.
$value
, bool $prettyPrint
)This function can be used to create a JSON-formatted, "pretty printed" representation of a getdns dictionary.
value
The dictionary to be processed.
prettyPrint
A flag to indicate if the formatted dictionary should also be indented for human-friendly display.
This function returns a character string containing the formatted dictionary. NULL is returned if any conversion or memory allocation errors are encountered.