I am using this: if(!preg_match(\'/^+[0-9]$/\', \'+1234567\'))
if(!preg_match(\'/^+[0-9]$/\', \'+1234567\'))
and am getting:
Warning: preg_match() [function.preg-match]:
'/^\+[0-9]$/' means that begining of the line has to be plus sign folowed by a number then end of line.
'/^\+[0-9]$/'
'/^\+[0-9]+$/' means that begining of the line has to be plus sign folowed by a one or more numbers then end of line.
'/^\+[0-9]+$/'