Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
IsoCodes
Mac
PHP Class IsoCodes\Mac
Author:
Sullivan Senechal (
[email protected]
)
Inheritance:
implements
isocodes\IsoCodeInterface
Show file
Open project: ronanguilloux/isocodes
Class Usage Examples
Public Methods
Method
Description
validate
(
string
$mac
) :
boolean
MAC address validator.
Method Details
validate()
public
static
method
Could be separated by hyphens or colons. Could be both lowercase or uppercase letters. Mixed upper/lower cases and hyphens/colons are not allowed.
See link:
http://en.wikipedia.org/wiki/MAC_address#Notational_conventions
public
static
validate
(
string
$mac
) :
boolean
$mac
string
return
boolean