note 23701 deleted from function.get-html-translation-table by dams
| From: | dams@php.net | Date: | Sat, 27 Jul 2002 16:19:38 +0000 |
| Subject: | note 23701 deleted from function.get-html-translation-table by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-33652@lists.php.net to get a copy of this message | ||
use this code snippet to put the contents of the html_translation table in a table.
<table border="1" cellpadding="2" cellspacing="1"
align="center">
<colgroup span="2" align="center">
<tr>
<th>
Character
</th>
<th>
html-equiv
</th>
</tr>
<?php
$trans = get_html_translation_table(HTML_ENTITIES);
while ($temp = each($trans))
{
echo("<tr>\n<td>\n");
echo("'" . htmlentities($temp[0]) . "'\n");
echo("</td>\n<td>");
echo(htmlentities($temp[1]) . "\n");
echo("</td>\n</tr>\n");
}
?>
</table>