ctype_alnum
(PHP 4 >= 4.0.4, PHP 5)
ctype_alnum function can be used to check for alphanumeric character(s). This function comes in handy while validating username type field etc.,