respect-validation/docs/rules/Tld.md
2018-12-11 13:31:50 +01:00

26 lines
417 B
Markdown

# Tld
- `Tld()`
Validates whether the input is a top-level domain.
```php
v::tld()->validate('com'); // true
v::tld()->validate('ly'); // true
v::tld()->validate('org'); // true
```
## Changelog
Version | Description
--------|-------------
0.3.9 | Created
***
See also:
- [CountryCode](CountryCode.md)
- [Domain](Domain.md)
- [Ip](Ip.md)
- [MacAddress](MacAddress.md)
- [SubdivisionCode](SubdivisionCode.md)