PHP ord() Function
Complete PHP String Reference
Definition and Usage
The ord() function returns the ASCII value of the
first character of a string.
Syntax
Parameter |
Description |
string |
Required. The string to get an ASCII value from |
Example
<?php
echo ord("h")."<br />";
echo ord("hello")."<br />";
?>
|
The output of the code above will be:
Complete PHP String Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|