PHP function get_html_translation_table()

Availability in PHP 4.0

Returns the translation table used by htmlspecialchars and htmlentities

Parameters

Parameter Data type Default value Note
$table int null, There are two new constants (HTML_ENTITIES, HTML_SPECIALCHARS) that allow you to specify the table you want.
$quote_style int null Like the htmlspecialchars and htmlentities functions you can optionally specify the quote_style you are working with. See the description of these modes in htmlspecialchars.

Return values

array

the translation table as an array.

Other resources

Official documentation for get-html-translation-table

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.