[php]chr — 返回指定的字符

官方範例
<?php
$str = "The string ends in escape: ";
$str .= chr(27); /* 在 $str 後邊增加換碼符 */

/* 通常這樣更有用 */

$str = sprintf("The string ends in escape: %c", 27);
?>
輸出:The string ends in escape: <-

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 stockwfj3 的頭像
    stockwfj3

    程式設計@筆記

    stockwfj3 發表在 痞客邦 留言(0) 人氣()