note 66225 added to function.ord

From: Date: Wed, 17 May 2006 06:16:22 +0000
Subject: note 66225 added to function.ord
Groups: php.notes 
Request: Send a blank email to php-notes+get-111476@lists.php.net to get a copy of this message
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>"; ?> ---- Server IP: 85.111.4.6 Probable Submitter: 85.96.192.94 ---- X-Spam-Status: No, hits=4.7 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_50_60,HTML_MESSAGE,UPPERCASE_25_50 autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.ord.php Edit -- http://master.php.net/note/edit/66225 Del: integrated -- http://master.php.net/note/delete/66225/integrated Del: useless -- http://master.php.net/note/delete/66225/useless Del: bad code -- http://master.php.net/note/delete/66225/bad+code Del: spam -- http://master.php.net/note/delete/66225/spam Del: non-english -- http://master.php.net/note/delete/66225/non-english Del: in docs -- http://master.php.net/note/delete/66225/in+docs Del: other reasons-- http://master.php.net/note/delete/66225 Reject -- http://master.php.net/note/reject/66225 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111476) next »