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


- 如何使用 Google API 在团队云端硬盘中创建文件夹? 2022-01-01
- Laravel 5:Model.php 中的 MassAssignmentException 2021-01-01
- PHP - if 语句中的倒序 2021-01-01
- 如何从数据库中获取数据以在 laravel 中查看页面? 2022-01-01
- openssl_digest vs hash vs hash_hmac?盐与盐的区别HMAC? 2022-01-01
- 使用 GD 和 libjpeg 支持编译 PHP 2022-01-01
- 如何在 Symfony2 中正确使用 webSockets 2021-01-01
- PHP foreach() 与数组中的数组? 2022-01-01
- 覆盖 Magento 社区模块控制器的问题 2022-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01