what about http://www.php.net/manual/en/function.ctype-alnum.php ?