PHP ord() function is utilized to calculates the ASCII value of the first character of a specified string.
Syntax:
ord(string)
string : Required. The input string.
Example:
<?php
echo ord("w")."<br />";
echo ord("welcome")."<br />";
?>
Output will be:
119
119
Syntax:
ord(string)
string : Required. The input string.
Example:
<?php
echo ord("w")."<br />";
echo ord("welcome")."<br />";
?>
Output will be:
119
119
0 comments:
Post a Comment