I'm new in php, I'm trying to validate a mobile number using Regular Expression. It's total length is 13 and must start with 88016 or 88017 or 88015 or 88018 or 88019 or 88011. So the number format is look like this:
88016XXXXXXXX OR 88015XXXXXXXX OR 88017XXXXXXXX OR 88019XXXXXXXX OR 88011XXXXXXXX
But I'm tired. Please see following code. I think there is a wrong in my expression..
if( !preg_match("/^([0-9]-)?[0-9]$/", $write_numer))
$err[] = "Please enter a valid phone number";
Thanks so much for your help.