开发者

Filter list of phone numbers using php

I have a list of phone numbers that start with the below numbers and in different formats...i need to grab the numbers that start only with the belo开发者_如何学Cw numbers/format using php......

020 8
07974 
+44 (0) 20
+44 0
440203

any help will be appreciated..


/^(020 8|07974|\+44 \(0\) 20|\+44 0|440203).*/

if(preg_match("/^(020 8|07974|\+44 \(0\) 20|\+44 0|440203).*/",  $numbers[i])
  echo i + "th number is valid";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜