1

I want to check entered phone number is valid E164 formate phone number if not then convert in proper E164 formate

1 Answers1

0

Use Regular Expressions in PHP.

The regex I had to come up with that works along with '+' sign along with the digits which much reside between 10~15 is as follows:

^\++?[0-9]\d{6,14}$

And this works well. You can check it out on Regex101.

Shayan Ahmad
  • 815
  • 8
  • 15