Converting variables to integer

From: Date: Wed, 06 Nov 2002 16:05:43 +0000
Subject: Converting variables to integer
Groups: php.general 
Request: Send a blank email to php-general+get-123017@lists.php.net to get a copy of this message
I have a bunch of form variables that I need to process as integers. The problem is that some users are writing in values with commas - e.g. 100,000, and that isn't read as an integer. There's more than one variable so I don't want to have to do a string replace for each one. Is there a general way to curb this problem? Thanks, Doug

« previous php.general (#123017) next »