what is the syntax of the ORD() function in php?
ord(string)
Parameter | Description |
---|---|
string | Required. The string to get an ASCII value from |
examples of the ORD() function
Examples 1. In this example, we return the ASCII value of “h”.
<?php
echo ord("h")."<br>";
echo ord("hello")."<br>";
?>