Re: First stupid post of the year.

From: Date: Wed, 02 Jan 2008 20:11:32 +0000
Subject: Re: First stupid post of the year.
Groups: php.general 
Request: Send a blank email to php-general+get-266517@lists.php.net to get a copy of this message
---- tedd <tedd@sperling.com> wrote: > Hi gang: > > I have a > > $submit = $_POST['submit']; > > The string contains: > > &nbsp; &nbsp; &nbsp; &nbsp;A&nbsp; &nbsp; &nbsp; &nbsp; > > (it's there to make a submit button wider) > > How can I strip out the "&nbsp;" from the $submit string leaving "A"? > > I've tried > > trim($submit); > > but, that don't work. > > Neither does: > > $submit = str_replace('&nbsp;','',$submit); > > or this: > > $submit = str_replace(' ';','',$submit); > > I should know what to do, but in this case I don't. > > Help is always appreciated. > > Cheers, > > tedd > > -- > ------- > http://sperling.com > http://ancientstones.com > http://earthstones.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php <input type="text" value="A" size="50"> <input type="submit"> Wolf

« previous php.general (#266517) next »