[PHP] php ip地址和整数相互转换代码 →→→→→进入此内容的聊天室

来自 , 2019-10-12, 写在 PHP, 查看 161 次.
URL http://www.code666.cn/view/e140dbab
  1. <?php
  2. $ip = gethostbyname('www.sharejs.com');
  3. $out = "The following URLs are equivalent:<br />\n";
  4. $out .= 'http://www.sharejs.com/, http://' . $ip . '/, and http://' . sprintf("%u", ip2long($ip)) . "/<br />\n";
  5. echo $out;
  6. ?>
  7.  
  8.  
  9. //php/8677

回复 "php ip地址和整数相互转换代码"

这儿你可以回复上面这条便签

captcha