var $return_array = array(); // 返回带有MAC地址的字串数组 var $mac_addr;
function GetMacAddr($os_type){ switch ( strtolower($os_type) ){ case "linux": $this->forLinux(); break; case "solaris": break; case "unix": break; case "aix": break; default: $this->forWindows(); break;
}
$temp_array = array(); foreach ( $this->return_array as $value ){