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";
精彩评论