what is the work of ord.php file in php
The ord() function is a inbuilt function in PHP that returns the ASCII value of the first character of a string.
This function takes a character string as a parameter and returns the ASCII value of the first character of this string.
Syntax:
"int ord($string)"
Example:
<?php
echo ord("A")."<br>"; // ASCII value of 'A' is 65. So, the Output: 65.
echo ord("ANUP KB")."<br>"; //Output: 65, as 'A' is the first Character.
?>