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.
public static validate ( string $mac ) : boolean
$mac string
return boolean