This isn\'t a big issue for me (as far as I\'m aware), it\'s more of something that\'s interested me. But what is the main difference, if any, of using is_numeric
is_numeric
You can use this code for number validation:
if (!preg_match("/^[0-9]+$/i", $phone)) { $errorMSG = 'Invalid Number!'; $error = 1; }