I have return a preg_match to check whether starting digits were 9477
or not and it works correctly. But now I want add another condition to add 9477
or 9476
should be valid.
Here is the condition:
- should contain 11 digits
- should starts with
9477
or9476
Here is my code:
preg_match('/^9477\d{7}$/',$Mnumber)