$valid_mac
$valid_mac : string
Regular expression for matching and validating a MAC address
This class allows you to preform various operations with Media Access Control (MAC addresses) on UNIX type systems.
setFakeMacAddress(string $interface, string $mac = null) : boolean
Change the MAC address of the network interface specified
string | $interface | Name of the interface e.g. eth0 |
string | $mac | The new MAC address to be set to the interface |
Returns true on success else returns false