note 66225 deleted from function.ord by hholzgra

From: Date: Thu, 02 Aug 2012 11:39:32 +0000
Subject: note 66225 deleted from function.ord by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189601@lists.php.net to get a copy of this message
Note Submitter: erdem at a1tradenetwork dot com ---- I have a new characters table. i want send it below that. <?php $color = "#f1f1f1"; echo "<center>"; echo "<h1>From 32 To 255 Characters Table</h1>"; echo "</center>"; echo "<table border=\"0\" style=\"font-family:verdana;font-size:11px;\"". " align=\"center\" width=\"800\"><tr style=\"font-weight:bold;\" ". "bgcolor=\"#99cccc\">". "<td width=\"15\">DEC</td><td width=\"15\">OCT</td>". "<td width=\"15\">HEX</td><td width=\"15\">CHR</td>". "<td width=\"15\">DEC</td><td width=\"15\">OCT</td>". "<td width=\"15\">HEX</td><td width=\"15\">CHR</td>". "<td width=\"15\">DEC</td><td width=\"15\">OCT</td>". "<td width=\"15\">HEX</td><td width=\"15\">CHR</td>". "<td width=\"15\">DEC</td><td width=\"15\">OCT</td>". "<td width=\"15\">HEX</td><td width=\"15\">CHR</td>". "<td width=\"15\">DEC</td><td width=\"15\">OCT</td>". "<td width=\"15\">HEX</td><td width=\"15\">CHR</td>". "<td width=\"15\">DEC</td><td width=\"15\">OCT</td>". "<td width=\"15\">HEX</td><td width=\"15\">CHR</td>". "</tr><tr>"; $ii = 0; for ($i=32;$i<=255;$i++){ $char = chr($i); $dec = ord($char); if ($i == "32") { $char = "Space"; } echo "<td style=\"background-color:$color;width:15px;\">". $dec."</td>\n<td style=\"background-color:$color;". "width:15px;text-align:left;\">".decoct($dec)."</td>\n". "<td style=\"background-color:$color;width:15px;". "text-align:left;\">".dechex($dec)."</td>\n ". "<td style=\"background-color:$color;width:15px;". "text-align:left;\"><b>".$char."</b></td>\n "; if (($ii % 6) == 5) { echo "</tr>\n<tr>\n"; } if (($ii % 2) == 1) { $color = "#f1f1f1"; }else { $color = "#ffffcc"; } $ii++; } echo "</tr></table>"; ?>

« previous php.notes (#189601) next »