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.
这篇关于顶级域中的数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:顶级域中的数字?


基础教程推荐
- 如何在 XAMPP 上启用 mysqli? 2021-01-01
- 使用 PDO 转义列名 2021-01-01
- phpmyadmin 错误“#1062 - 密钥 1 的重复条目‘1’" 2022-01-01
- Doctrine 2 - 在多对多关系中记录更改 2022-01-01
- PHP 守护进程/worker 环境 2022-01-01
- 找不到类“AppHttpControllersDB",我也无法使用新模型 2022-01-01
- 在 yii2 中迁移时出现异常“找不到驱动程序" 2022-01-01
- HTTP 与 FTP 上传 2021-01-01
- 如何在 Symfony 和 Doctrine 中实现多对多和一对多? 2022-01-01
- 在 CakePHP 2.0 中使用 Html Helper 时未定义的变量 2021-01-01