From: "Jamie Saunders" <phpdev@mediacdcards.net> > I'm trying to find a way of simply checking a string for numbers. > > e.g. > > if ($myVar contains a number) > { > //numbers present > } > else > { > //no numbers present > } if(preg_match('/[0-9]/',$myVar)) { //number present } else { //no numbers present } ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php