public static function ctype_alnum($text)
    {
        $text = self::convert_int_to_char_for_ctype($text);

        return \is_string($text) && '' !== $text && !preg_match('/[^A-Za-z0-9]/', $text);
    }
public static function ctype_alnum($text)
    {
        $text = self::convert_int_to_char_for_ctype($text);

        return \is_string($text) && '' !== $text && !preg_match('/[^A-Za-z0-9]/', $text);
    }
public static function ctype_alnum ( $ text ) { $ text = self :: convert_int_to_char_for_ctype ( $ text ) ; return \ is_string ( $ text ) && '' !== $ text && ! preg_match ( '/[^A-Za-z0-9]/' , $ text ) ; }
Returns TRUE if every character in text is either a letter or a digit, FALSE otherwise.

@see https://php.net/ctype-alnum

@param string|int $text

@return bool
Returns TRUE if every character in text is either a letter or a digit FALSE otherwise .