<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<?php

if (!isset($_GET['from'])) $from=0;
else 
$from $_GET['from'];

if (!isset(
$_GET['to'])) $to=7;
else 
$to $_GET['to'];

?>

<head>
  <title>Unicode Chart</title>
  <style type="text/css">
  <!-- 
    td { font-size:small; }
    td big { font-size:200%; }
  //-->
  </style>
</head>

<body>


<?php

function threeDigit($a){
  
$a dechex($a);
  if (
strlen($a) < 3){
    if (
strlen($a) == 2) {  $a "0" $a; }
    else { 
$a "00" $a; }
  }
  return 
$a;
}

if (
hexdec($to) - hexdec($from) > 1000){
  print 
"<p><b>Error:</b> It's not possible to display charts with more than 1000 columns!</p>";
}else{

print 
"<table summary=\"unicode chart\" border=1>\n<tr><th></th>";

for (
$i hexdec($from); $i <= hexdec($to); $i++)
  print 
"<th title=\"" $i "\">" threeDigit($i) . "</th>";

print 
"</tr>";

for (
$j 0$j <= 15$j++){
  print 
"\n<tr>";
  print 
"\n<th title=\"" $j "\">" dechex($j) . "</th>";
  for (
$i hexdec($from); $i <= hexdec($to); $i++)
    print 
"<td><big>&#x" threeDigit($i) . dechex($j) . ";</big><br>" threeDigit($i) . dechex($j) . "</td>";
  print 
"\n</tr>";
}

print 
"\n</table>";

}

?>

<p><small><i><a href="http://www.unicode.org/charts/" title="Unicode Charts on the Unicode Homepage">Unicode Chart</a> generated with <a href="http://vlado-do.de/" title="Vlado World-Wide">Vlado Plaga</a>'s <a href="http://vlado-do.de/download/downloadE.html#unicode">chart.php</a> script
</i></small></p>

</body>
</html>