English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The chr() function is used to return the specified character
string chr ( int $ascii )
It returns the specific character
Returns the single character corresponding to the specified ascii.
Number | Parameters and description |
---|---|
1 | ASCII ASCII value |
Try the following example, returning characters from different ASCII values:
<?php echo chr(2) . \ // decimal value echo chr(05) . \ // octal value echo chr(0x2) . \ // hexadecimal value ?>测试看看‹/›