Re: trimming nans from a string

From: Date: Wed, 11 Dec 2002 09:51:15 +0000
Subject: Re: trimming nans from a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-127777@lists.php.net to get a copy of this message
$variable = ereg_replace('[^0-9]','',$variable); Frands Sørensen wrote:
I want a user to type a number in an html-form. Afterwards I want to check for wrong typing. How do I remove all non numbers from the string?
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#127777) next »