| Posted by Richard Lynch on 01/21/05 19:23 
Jason wrote:> Simple functions to check & fix if necessary invalid formating of a MAC
 > address... I seem to be having problems with the global variable $mac
 > not being returned from the fix_mac() function.  Any help is appreciated.
 > function fix_mac( $mac ) {
 >   global $mac;
 
 It's really weird to both pass in $mac as an argument and to declare it
 global...
 
 Do one or the other, but not both.
 
 Can't help you with the mess of Regex you've got though...
 
 --
 Like Music?
 http://l-i-e.com/artists.htm
  Navigation: [Reply to this message] |