Hardware
Software
Application Notes
uPHP Function Reference
Known Issues
Wattmon.com [main site]
WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Return the ASCII code for a character
$character: A string containing 1 character
Integer: ASCII code number (0-255) of the passed character. If the string length is greater than 1 it will return 0.
<? $a=chr(65); $o=ord($a); print("Character ".$a." has ASCII code ".$o); ?>
chr() - Return the character for an ASCII code
charat() - Return the ASCII code for a character in a string at an index