getdns Functions
PHP Manual

php_getdns_print_json_list

(PECL getdns >= 0.10.0)

php_getdns_print_json_listCreates a JSON-formatted character string representation of a list.

Description

string php_getdns_print_json_list ( int $value , bool $prettyPrint )

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

Parameters

value

The list 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 list. NULL is returned if any conversion or memory allocation errors are encountered.


getdns Functions
PHP Manual