Go homepage(回首页)
Upload pictures (上传图片)
Write articles (发文字帖)

The author:(作者)归海一刀
published in(发表于) 2014/2/17 7:33:06
PHP实例:将IP最后一位替换为星号_[PHP教程]

PHP实例:将IP最后一位替换为星号_[PHP教程]

将IP最后一位替换为星号 代码如下:


str = '1.1.1.1';

reg = '/((?:\d+\.){3})\d+/';

echo preg_replace(reg, "\\1*", str);
?>







If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)





QQ:154298438
QQ:417480759