User Tools

Site Tools


uphp:functions:chr

chr

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Return the character for an ASCII code

Description

string chr ( int $code )

Parameter

$code: ASCII code number (0-255)

Return Values

A one-character string containing the ASCII character referenced by code

Example

<?
  $a=chr(65);
  print($a); // result is 'A' which is the ASCII character number 65
?>

See Also

ord() - Return the ASCII code for a character

charat() - Return the ASCII code for a character in a string at an index

uphp/functions/chr.txt · Last modified: 2021/09/13 05:57 (external edit)