返回序数值的字符。
语法: string chr(int ascii);
返回值: 字符串
函数种类: 资料处理
本函数将字符的序数转成 ASCII 的字符。本函数和 ord() 成对照。
<?$str .= chr(27);$str = sprintf("字符串的结束字符是: %c", 27);?>
ord() sprintf()
PHP 首页 | PHP 导读 | PHP 函数库 | PHP 函数索引 | PHP 范例程序