Bladephp: Now with 8+ codeigniter, php, and laravel project 8+ php project From $37/Month From Rs. 2499/Month

PHP get_html_translation_table() Function

by
Category:php
php php string
PHP get_html_translation_table() Function

The get_html_translation_table() function returns the translation table used by the htmlentities() and htmlspecialchars() functions.

Tip: Some characters can be encoded several ways. The get_html_translation_table() function returns the most common encoding. You may also like How to Dynamic PHP and html form with qty price and total in table using JavaScript calculations and How to get maximum value in mysql table column using Codeigniter.

Example

<?php
print_r (get_html_translation_table()); // HTML_SPECIALCHARS is default.
?>

Output

 Array ( ["] => " [&] => & [<] => < [>] => > ) 

0 Comments


Html code work in comment box


Related Post