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.
这篇关于顶级域中的数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:顶级域中的数字?
基础教程推荐
- php中的PDF导出 2022-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- php中的foreach复选框POST 2021-01-01
- Web 服务器如何处理请求? 2021-01-01
- 将变量从树枝传递给 js 2022-01-01
