mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 07:15:45 +01:00
This commit will also replace the usage of "mac" to "MAC" since it is an acronym. Co-authored-by: Henrique Moody <henriquemoody@gmail.com>
23 lines
354 B
Markdown
23 lines
354 B
Markdown
# MacAddress
|
|
|
|
- `MacAddress()`
|
|
|
|
Validates whether the input is a valid MAC address.
|
|
|
|
```php
|
|
v::macAddress()->validate('00:11:22:33:44:55'); // true
|
|
v::macAddress()->validate('af-AA-22-33-44-55'); // true
|
|
```
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
0.3.9 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [Domain](Domain.md)
|
|
- [Ip](Ip.md)
|
|
- [Tld](Tld.md)
|