src/Utilities/Regex.php
public static function isLetterOrDigit($char)
    {
        $pattern = self::getLetterOrDigitPattern();

        return is_scalar($char) && (bool)preg_match($pattern, $char);
    }
public static function isLetterOrDigit($char)
    {
        $pattern = self::getLetterOrDigitPattern();

        return is_scalar($char) && (bool)preg_match($pattern, $char);
    }
public static function isLetterOrDigit ( $ char ) { $ pattern = self :: getLetterOrDigitPattern ( ) ; return is_scalar ( $ char ) && ( bool ) preg_match ( $ pattern , $ char ) ; }
Returns information if given character is a letter or digit

@param string $char Character to check
@return bool
Returns information if given character is a letter or digit