摘要:
直接上代码:$str = '192.168.2.100';echo 'IP:',$str,'';$int = ip_long($str);echo $int,'';echo long_ip($int);function ip_long($ip) { $ary = explode('.', $ip); return count($ary) == 4 ? $long = $ary[0] + ($ary[1] 255 ? ($int & 255).'.'.(($int >> 8) &a 阅读全文
posted @ 2014-04-10 16:36
再見理想
阅读(285)
评论(0)
推荐(0)

浙公网安备 33010602011771号