PHP ctype_alnum()

(PHP is alnum()에서 넘어옴)

1 개요[ | ]

PHP ctype_alnum()
PHP is_alnum()
var_dump( ctype_alnum('ab123') );
# bool(true)
var_dump( ctype_alnum('ab123#') );
# bool(false)
function is_alnum($s) { return 1==preg_match('/^[a-zA-Z0-9]+$/',$s); }
var_dump( is_alnum('ab123') );
# bool(true)
var_dump( is_alnum('ab123#') );
# bool(false)

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}