Gen. partnerAlgotech

PHP function get_html_translation_table()

the translation table as an array.

|
September 11, 2019

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

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.