Table of Contents

Syntax

array get_html_translation_table([int $table [, int $quote_style]])

(PHP 4, PHP 5)

$table Indicates which translation table you want to retrieve by passing the constant HTML_ENTITIES or HTML_SPECIALCHARS.
$quote_style Indicates the type of quotes to use for the result table.
RETURNS The translation table that the function htmlentities or htmlspecialchars uses to encode strings.

What it Does

Returns the translation table that htmlentities or htmlspecialchars uses to encode a string. This is used specifically for viewing or modifying the character translations that are performed by these functions.

Example

// output the translation table
print_r(get_html_translation_table(HTML_ENTITIES));