Re: First stupid post of the year.

From: Date: Wed, 02 Jan 2008 23:38:30 +0000
Subject: Re: First stupid post of the year.
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-266536@lists.php.net to get a copy of this message
At 2:58 PM -0600 1/2/08, Richard Lynch wrote:
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
That would work for that, but not for this: Go from this: <input type="submit" value="&nbsp; &nbsp; &nbsp;A&nbsp; &nbsp; &nbsp; &nbsp"> via this: $submit = $_POST['submit'] to: A It doesn't appear as simple as what people think it is. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#266536) next »