setMAC()

setMAC() -- Sets the MAC address in the object

Synopsis

require_once 'Net/MAC.php';

mixed setMAC (string $macaddr, string $delimiter = ':')

Description

This method will set the MAC address in the object given the passed MAC address and the MAC address delimiter. This method also makes use of the check() method to make sure that the MAC address is valid.

Parameter

Return value

boolean - Returns TRUE if the MAC address is set correctly, FALSE otherwise (i.e. the MAC address is not valid).

Note

This function can not be called statically.

Example

See

Net_MAC::__construct()

MDB2::factory()

MDB2::isError()

PEAR_Error::getUserInfo()