setMAC()

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

Synopsis

require_once 'Net/MAC.php';

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

Beschreibung

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

Rückgabewert

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

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Beispiel

Siehe auch

Net_MAC::__construct()

MDB2::factory()

MDB2::isError()

PEAR_Error::getUserInfo()