note 10077 rejected and deleted from Chr by zak
| From: | zak@php.net | Date: | Tue, 12 Dec 2000 05:14:36 +0000 |
| Subject: | note 10077 rejected and deleted from Chr by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8627@lists.php.net to get a copy of this message | ||
The following does not work as it should...anyone see what is wrong with it or is php incorrect.
<?
echo "<html>";
echo "<body bgcolor = CCCCCC>n";
echo "I am pretty sure that this is all wrong because what shows up when you type alt+the
three digit number is something complet
ely different than what shows up from this simple for loop in php. What is going on?n";
echo "<table>n";
for( $i = 0; $i <= 255; $i++ )
{
$thisChar = Chr($i);
echo "<tr><td>Decimal value: $i, corresponding ASCII character:
$thisChar</td></tr>n";
}
?>