I want to make a bid system on a website. That means users can post their bid (natural number). I want to make sure users don\'t try to post characters, decimal numbers, etc
Either preg_match('/^[0-9]+$/', $var); or ctype_digit
preg_match('/^[0-9]+$/', $var);
ctype_digit