chr
This function returns the UNICODE character code of the character supplied.
Indirect parameter passing is disabled
1
No. | Type | Description |
---|---|---|
1 input |
string | character code Character code: 0 ... 1114111 (full UNICODE range). 0 returns an empty string. |
Type | Description |
---|---|
numeral | Decoded character The string contains 1 character if a valid non-zero code is provided. For code 0, an empty string is returned. |
Invalid character code (outside 0 - 1114111 range)
echo( "'", chr( 0 ), "'" ); // Empty string
echo( "'", chr( 65 ), "'" ); // A
echo( "'", chr( 223 ), "'" ); // Sharp S
echo( "'", chr( 8364 ), "'" ); // EURO sign
echo( "'", chr( 119070 ), "'" ); // Violin clef
''
'A'
'ß'
'€'
'𝄞'