Number in the top-level domain?(顶级域中的数字?)
问题描述
顶级域的末尾可以包含数字吗?我对 DNS 规则等一无所知,但是当我尝试将 PHP 的 filter_var() 函数与 FILTER_VALIDATE_EMAIL 一起用于 test@null.com1 时,它返回 true.
Can top-level domains contain a number at the end? Idk nothing about DNS rules etc but when I try to use PHP's filter_var() function with FILTER_VALIDATE_EMAIL for test@null.com1 it returns true.
推荐答案
从概念上讲,TLD 中没有禁止数字的内容 未来,谁知道呢,也许会出现数字顶级域名.
Conceptually, there is nothing that disallows numbers in a TLD and in the future, who knows, perhaps there will be numeric TLDs.
目前没有包含数字的 TLD - 该函数可能不会针对已知 TLD 列表进行测试(因为它可能会发生变化),而是在词法上进行测试.
There are no TLDs at the moment that do have numbers in them - the function probably does not test against a list of known TLDs (as it is subject to change), but lexically.
这篇关于顶级域中的数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:顶级域中的数字?
基础教程推荐
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 如何替换eregi() 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
