IP 转整型:
ip2long('133.114.56.135'); //转整型后带符号 -2056111993
bindec(decbin(ip2long('133.114.56.135')));//转整型后不带符号,10位 2238855303
IP转字符串
long2ip('-2056111993');
long2ip('2238855303');
IP 转整型:
ip2long('133.114.56.135'); //转整型后带符号 -2056111993
bindec(decbin(ip2long('133.114.56.135')));//转整型后不带符号,10位 2238855303
IP转字符串
long2ip('-2056111993');
long2ip('2238855303');