note 10077 added to Chr

From: Date: Tue, 12 Dec 2000 04:21:56 +0000
Subject: note 10077 added to Chr
Groups: php.notes 
Request: Send a blank email to php-notes+get-8626@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"; } ?> http://www.php.net/manual/function.chr.php

« previous php.notes (#8626) next »