首页 >后端开发 >php教程 >ip正则婚配 - php

ip正则婚配 - php

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-06-13 10:58:50820浏览

ip正则匹配 - php

preg_match_all ("#(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) (\d{1,4})#",                $str, $phones);$arr = array_unique($phones);foreach($arr[0] as $v){    $v = str_replace(' ',':', $v);    echo $v .  "\n";
?

?

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn