tao-test/app/vendor/respect/validation/docs/rules/Tld.md

21 lines
330 B
Markdown
Raw Normal View History

2022-08-29 20:14:13 +02:00
# Tld
- `v::tld()`
Validates a top-level domain
```php
v::tld()->validate('com'); // true
v::tld()->validate('ly'); // true
v::tld()->validate('org'); // true
```
***
See also:
* [CountryCode](CountryCode.md)
* [Domain](Domain.md)
* [Ip](Ip.md)
* [MacAddress](MacAddress.md)
* [SubdivisionCode](SubdivisionCode.md)