getdns Functions
PHP Manual

php_getdns_print_json_dict

(PECL getdns >= 0.10.0)

php_getdns_print_json_dictCreates a JSON-formatted character string representation of a dictionary.

Description

string php_getdns_print_json_dict ( int $value , bool $prettyPrint )

This function can be used to create a JSON-formatted, "pretty printed" representation of a getdns dictionary.

Parameters

value

The dictionary to be processed.

prettyPrint

A flag to indicate if the formatted dictionary should also be indented for human-friendly display.

Return Values

This function returns a character string containing the formatted dictionary. NULL is returned if any conversion or memory allocation errors are encountered.


getdns Functions
PHP Manual