note 23701 added to function.get-html-translation-table
| From: | adunaphel at windows2000voorchristus dot nl | Date: | Thu, 25 Jul 2002 12:43:52 +0000 |
| Subject: | note 23701 added to function.get-html-translation-table | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33544@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>
--
http://www.php.net/manual/en/function.get-html-translation-table.php
http://master.php.net/manage/user-notes.php?action=edit+23701
http://master.php.net/manage/user-notes.php?action=delete+23701
http://master.php.net/manage/user-notes.php?action=reject+23701