(PECL getdns >= 0.10.0)
php_getdns_print_json_list — Creates a JSON-formatted character string representation of a list.
$value
, bool $prettyPrint
)This function can be used to create a JSON-formatted, "pretty printed" representation of a getdns list.
value
The list 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 list. NULL is returned if any conversion or memory allocation errors are encountered.