Validating input

From: Date: Fri, 28 Jan 2005 19:44:02 +0000
Subject: Validating input
Groups: php.general 
Request: Send a blank email to php-general+get-207630@lists.php.net to get a copy of this message
I've been looking at the docs and found preg_match and preg_match_all but these functions only seem to match 1 specific search item. I want to make sure a variable (say $mlsnumber) contains only numbers and no spaces. What would I use to accomplish this? Thanks Ed

« previous php.general (#207630) next »