php代码 //把IP转化成整数(ip2long) 把整数转化成IP(long2ip) $ip = "192.168.1.182"; echo $str = sprintf("%u",ip2long($ip)); echo ""; echo long2ip($str);로그인 후 복사