setMAC()

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

Synopsis

require_once 'Net/MAC.php';

mixed setMAC (chaîne de caractères $macaddr, chaîne de caractères $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.

Paramètres

Valeur retournée

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

Note

Cette fonction ne peut pas être appelée de façon statique.

Exemple

Voir aussi

Net_MAC::__construct()

MDB2::factory()

MDB2::isError()

PEAR_Error::getUserInfo()