Constants | Net_MAC::format() |
Net_MAC | |
PEAR Manual | |
require_once 'Net/MAC.php'; |
string Net_MAC::check (
string $input
, string $delimiter=':'
)
This function will check a MAC address to make sure it is valid.
string $input - The string containing the MAC Address
string $delimiter - The string representing the delimiter to use when checking the MAC Address
boolean - TRUE if the MAC address is valid, FALSE otherwise
This function should be called statically.
Using check()
|
This would output the following:
ab:cd:ef:00:11:22 is valid |
Using check() to get a MAC address with a different delimiter
|
This would output the following:
AB:CD:EF:00:11:22 is invalid |
since the delimiter '-' was not used in the provided MAC address.
Constants | Net_MAC::format() |
Net_MAC | |
PEAR Manual | |