Votre campagne ici    
Nous sommes le vendredi 21 novembre 2008    


Accueil
Accueil





Accueil  Les scripts  Les filtres  
Mise en ligne : lundi 29 mai 2006    
Par : CladX    

Pour connaitre le nom et l’affichage des caractères ASCII

<table cellspacing=10>
<tr>
<?
$tab 
= array('NUL''SOH''STX''ETX''EOT''ENQ''ACK''BEL',
             
'BS''HT&nbsp;(\t)','LF&nbsp;(\n)''VT''FF'
             
'CR&nbsp;(\r)''SO''SI''DLE''DC1''DC2''DC3',
             
'DC4''NAK''SYN''ETB''CAN''EM''SUB''ESC',
             
'FS''GS''RSD''US''SP');

for (
$i 0$i 256$i++)
{
    
$couleur $i&"#FFFFFF" "#B8C8FE";
    
// récupére le code html du caractère
    
$html htmlentities(chr($i),'ENT_QUOTES');
    
$html str_replace('&','&<NOBR>',$html);
    
$html = (chr($i)==$html) ? $tab[$i] : $html;
    if (
$i%32==0) echo '
      <td bgcolor="'
.$couleur.'">
      <table bgcolor="#FFFFFF" cellpadding="2" border="0" width="130">'
;
    echo 
'
        <tr bgcolor="'
.$couleur.'">
          <td width=30>'
.$i.' </td>
          <td>'
.chr($i).'&nbsp;</td>
          <td>'
.$html.'&nbsp;</td>
        </tr>'
;
    if (
$i%32==31) echo '
      </table>
      </td>'
;
}
?>
</tr>
</table>


--- Réagir à cet article ---