(PHP 3, PHP 4, PHP 5)
Restituisce il valore ASCII del primo carattere di string. Questa č la funzione complementare di chr().
Esempio 1. Esempio di uso di ord()
<?php$str = "\n";if (ord($str) == 10) { echo "The first character of \$str is a line feed.\n";}?>
Qui si puņ reperire la tabella ASCII: http://www.asciitable.com.
Vedere anche chr().