Re: First stupid post of the year.

From: Date: Wed, 02 Jan 2008 20:58:53 +0000
Subject: Re: First stupid post of the year.
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-266524@lists.php.net to get a copy of this message
On Wed, January 2, 2008 2:09 pm, tedd wrote: > At 1:25 PM -0600 1/2/08, Jack Mays wrote: >>>> >>>>>On Jan 2, 2008 1:34 PM, tedd <tedd@sperling.com> wrote: >>>>from this: >>>> >>>>&nbsp; &nbsp; &nbsp; &nbsp;A&nbsp; &nbsp; &nbsp; >>>>&nbsp; >>>> >>>>to this A >> >>Read the docs for trim, you can't use it inline with other >>functions, it will not trim the input. you have to seperate it out, >>e.g.: >> >> $submit = str_replace('&nbsp;','',$submit); >> $submit = trim($submit); > > But, that still doesn't work. > > Go from here: > > &nbsp; &nbsp; &nbsp; &nbsp;A&nbsp; &nbsp; &nbsp; &nbsp; > > to here: > > A Works for me: lynch@localhost ~/cd $ php -a Interactive mode enabled <?php $a = '&nbsp; &nbsp; &nbsp; &nbsp;A&nbsp; &nbsp; &nbsp; &nbsp;'; $b = str_replace('&nbsp;', '', $a); echo "b: $b\n\n"; $c = trim($b); echo "c: $c\n\n"; ?> b: A c: A lynch@localhost ~/cd $ -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

« previous php.general (#266524) next »