PHP ord() Function

The ord() function is used to get the ASCII code for a character.

Demo :



Type Character :  

Example :

Type Character :A
Type Character :c

Following code is ord() function demo code If you need to you copy and use to your website.


<?php
  $OrdFun = "A";
  $result = ord($OrdFun);
  echo $result;
?>

In the ord() function have one parameters that name is string character.

Free Download Script :

If you need ord() function demo code download from following link.

Download




Content