Net_MAC::check() (Previous) (Next) Net_MAC::__construct()

View this page in Last updated: Sun, 28 Sep 2008
English | French | German | Hungarian | Japanese | Polish | Spanish | Plain HTML

Net_MAC::format()

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

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

  • chaîne de caractères $input - The chaîne de caractères containing the MAC Address

  • chaîne de caractères $delimiter - The chaîne de caractères representing the delimiter to use when formatting the MAC Address

  • chaîne de caractères $uppercase - If set to TRUE (default), the alpha characters in the hexadecimal values in the MAC Address will be returned in uppercase. If FALSE, the alpha characters in the hexadecimal values will be returned in lowercase.

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.

Voir aussi

Net_MAC::check(),

Net_MAC::check() (Previous) (Next) Net_MAC::__construct()

Download Documentation Last updated: Sun, 28 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.