PHP Code:
is_numeric($input)
is all you really need for a phone number unless you want to allow international numbers (which I assume you dont)
from my experience people will often add spaces (even when you tell them not to)...e.g. '04033 55555'
so you might be well to $input=str_replace(' ','',$input) , then check for strlen() and is_numeric().