开发者

Filter list of phone numbers using php

开发者 https://www.devze.com 2022-12-23 18:35 出处:网络
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......

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

精彩评论

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