Re: Beginner question : Removing spaces in forms

From: Date: Fri, 13 Dec 2002 09:15:55 +0000
Subject: Re: Beginner question : Removing spaces in forms
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128132@lists.php.net to get a copy of this message
you could start with something like: $old_string="44 55 99 111"; $new_string=ereg_replace(" ","",$old_string); echo $new_string; should display 445599111 There are other regular expression aids listed on the page at: http://www.php.net/manual/en/function.ereg-replace.php Hope this helps, Hugh ----- Original Message ----- From: "Andrew Wilson" <will@netwaynetworks.com.au> To: <php-general@lists.php.net> Sent: Thursday, December 12, 2002 7:19 PM Subject: [PHP] Beginner question : Removing spaces in forms > > Hay guys i was wondering if there was a form parameter of something > equivalent for input text boxes that when a user enters a number or series > of numbers that it removes the spaces. > If there is no alternative how would you go about solving this issue. > > Your help is appreciated. > Thanks. > > > Netway Networks Pty Ltd > (T) 8920 8877 > (F) 8920 8866 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#128132) next »