Karakterin ASCII kodunu geri döndüren PHP fonksiyonudur.
<?php $kod = ord('K'); echo "K harfinin ASCII kodu = ".$kod; ?>
K harfinin ASCII kodu = 75