public static function containsNonAlphaNumeric($check, $count = 1)
    {
        if (!is_scalar($check)) {
            return false;
        }

        $matches = preg_match_all('/[^a-zA-Z0-9]/', $check);

        return $matches >= $count;
    }
public static function containsNonAlphaNumeric($check, $count = 1)
    {
        if (!is_scalar($check)) {
            return false;
        }

        $matches = preg_match_all('/[^a-zA-Z0-9]/', $check);

        return $matches >= $count;
    }
public static function containsNonAlphaNumeric ( $ check , $ count = 1 ) { if ( ! is_scalar ( $ check ) ) { return false ; } $ matches = preg_match_all ( '/[^a-zA-Z0-9]/' , $ check ) ; return $ matches >= $ count ; }
Checks if a string contains one or more non-alphanumeric characters.

Returns true if string contains at least the specified number of non-alphanumeric characters

@param string $check Value to check
@param int $count Number of non-alphanumerics to check for
@return bool Success
Checks if a string contains one or more non - alphanumeric characters .