-
string chr ( int $ascii )
ascii 에 지정한 문자를 가지는 한 글자의 문자열을 반환합니다.
$str = "The string ends in escape:"; $str .= chr(20); /* $str의 마지막에 이스케이프 문자를 추가합니다. */ echo $str."<br />"; // Result: The string ends in escape: //반대로는 int(string $string) $str = "The string ends in escape: "; $str .= ord(''); echo $str."<br/>"; // Result: The string ends in escape: 20
출처: http://kr.php.net/manual/kr/function.chr.php'개발 관련 > PHP' 카테고리의 다른 글
htmlentities (0) 2011.03.22 Date() 함수 (0) 2011.03.17 addslashes (0) 2011.03.09 PHP 'getimagesize()' 함수 (0) 2010.03.29 SWITCH() 문 (0) 2010.03.12