Chr
(PHP3 , PHP4)
Chr --- 傳回指定的字元
語法 :
string chr(int ascii)說明 :
傳回參數 ascii指定的字元。
Example :
<?php
$str .= chr (27); /* add an escape character at the end of $str */
/* Often this is more useful */
$str = sprintf ("The string ends in escape: %c", 27);
?>
此函式是ord( )的互補,參考sprintf( )