<?php


function a($ip){
    $intIP = ip2long($ip);
    return $intIP;
}
function b($intIP){
    $IPStr = long2ip($intIP);
    return $IPStr;
}


$ip = "192.168.1.1";
$intIP = a($ip);
echo $intIP;
echo "-------";
$IPStr = b($intIP);
echo $IPStr;

  

php转化IP为整形

相关文章:

  • 2022-02-01
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2021-08-11
  • 2021-10-14
  • 2021-08-20
  • 2021-07-25
猜你喜欢
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案