Answer the question
In order to leave comments, you need to log in
how to check phone number in php
Hello!
I'm using the Inputmask
library
There are phone input masks https://github.com/RobinHerbots/Inputmask/blob/4.x...
in the format:
+376-###-###
+971-5#-###-####
+971-#-###-####
+93-##-###-####
Answer the question
In order to leave comments, you need to log in
Write regular expressions and use preg_match to check
+376-###-###
/^(\+376)-(\d{3})-(\d{3})$/g
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question