get html translation table - 语法
array get_html_translation_table ([ int $table=HTML_SPECIALCHARS [, int $flags=ENT_COMPAT | ENT_HTML401 [, string $encoding="UTF-8" ]]] )
它返回htmlentity()和htmlSpecialchars()函数使用的转换表。
| Sr.No | 参数 & Description |
|---|---|
| 1 |
table 它包含有关返回HTML_ENTITIES或HTML_SPECIALCHARS的表的信息 |
| 2 |
flags 它包含标志信息 |
get html translation table - 返回值
它以数组的形式返回转换表,原始字符作为键,实体作为值。
get html translation table - 示例
<?php print_r (get_html_translation_table(HTML_SPECIALCHARS)); ?>
这将产生以下输出-
Array ( ["] => " [&] => & [<] => < [>] => > )