Net_MAC::format()

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

Synopsis

require_once 'Net/MAC.php';

string Net_MAC::format (string $input [, string $delimiter=':' [, boolean $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 string is passed to the $delimiter parameter (default ':').

Parameter

Return value

string - The formatted MAC Address or FALSE if the syntax of the MAC address is invalid

Note

This function should be called statically.

Example

See

Net_MAC::check(),