Net_MAC::format()

Net_MAC::format() -- Cleanly formats Media Access Control (MAC) addresses

Synopsis

require_once 'Net/MAC.php';

chaîne de caractères Net_MAC::format (chaîne de caractères $input [, chaîne de caractères $delimiter=':' [, booléen $uppercase=TRUE]])

Description

This function will format a MAC address into XX:XX:XX:XX:XX:XX format from whatever format is passed to the function. The delimiter (':' in the example above) will be replaced with whatever chaîne de caractères is passed to the $delimiter parameter (default ':').

Paramètres

Valeur retournée

chaîne de caractères - The formatted MAC Address or FALSE if the syntax of the MAC address is invalid

Note

Cette fonction devrait être appelée de façon statique.

Exemple

Voir aussi

Net_MAC::check(),