PHP Ctype 함수들
페이지 정보
본문
php 에서 문자열의 타입을 체크하는 함수들이 있는데,
Ctype Functions 라고 부르는 모양이다.
물론, 정규식이나 여타 다른 방법으로 문자열을 체크할 수도 있으나,
문자열의 타입을 체크하는 데 간단하고 편리한 함수이다.
ctype_alnum : 문자열이 알파벳과 숫자로만 되어 있는가?
ctype_alpha : 문자열이 모두 알파벳으로만 되어 있는가?
ctype_cntrl
ctype_digit : 문자열이 모두 숫자로만 되어 있는가?
ctype_graph
ctype_lower
ctype_print
ctype_punct
ctype_space
ctype_upper
ctype_xdigit
* 참고
http://php.net/manual/en/function.ctype-alnum.php
http://php.net/manual/en/function.ctype-digit.php
Ctype Functions 라고 부르는 모양이다.
물론, 정규식이나 여타 다른 방법으로 문자열을 체크할 수도 있으나,
문자열의 타입을 체크하는 데 간단하고 편리한 함수이다.
ctype_alnum : 문자열이 알파벳과 숫자로만 되어 있는가?
ctype_alpha : 문자열이 모두 알파벳으로만 되어 있는가?
ctype_cntrl
ctype_digit : 문자열이 모두 숫자로만 되어 있는가?
ctype_graph
ctype_lower
ctype_print
ctype_punct
ctype_space
ctype_upper
ctype_xdigit
* 참고
http://php.net/manual/en/function.ctype-alnum.php
http://php.net/manual/en/function.ctype-digit.php
추천0
댓글목록
등록된 댓글이 없습니다.