Checking the phone number is a bit more complicated than checking if the input is integer. As an example, phone numbers can start with zeros, so it's neither technically nor int. Also, users can enter a dash: For example:
00 34 922-123-456
So, with regard to verification, you have several options:
Use regex expression to check, look:
http://regexlib.com/
This site will contain hundreds of examples.
Use a loop to check each character in turn, i.e. is an int or dash
I would recommend the former, as the latter depends on sequential input from users, and you will not get this
source share