note 57396 deleted from function.htmlentities by mazzanet
| From: | mazzanet@php.net | Date: | Mon, 03 Oct 2005 08:35:19 +0000 |
| Subject: | note 57396 deleted from function.htmlentities by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96231@lists.php.net to get a copy of this message | ||
Note Submitter: phpContrib (A T) esurfers d o t c o m
----
This will print out a nice table of all the supported HTML entities of your PHP install.
<?php
echo('<HTML><HEAD><TITLE>HTML Entities
Table</TITLE></HEAD><BODY bgcolor="#ffffff">');
echo('<H1>HTML<i>Entities</i></H1><p>');
echo('<table border=0 width=100% bgcolor="#EFEFFF"><tr><td align=left
valign=middle><font face="courier" size=-1>');
$cnt=0;
for($i=1;$i<=255;$i++) {
$c=htmlentities(chr($i));
if($c!='' && !empty($c) && $c!=chr($i)) {
echo($c."\t=\t".htmlentities($c)."<br>\n");
$cnt++;
if($cnt>=20) {
echo('</font></td><td align=left valign=middle><font
face="courier" size=-1>');
$cnt=0;
}
}
}
echo('</font></td></tr></table>');
echo('</BODY></HTML>');
?>