Re: First stupid post of the year.
| From: | tedd | 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 = ' A '; $b = str_replace(' ', '', $a); echo "b: $b\n\n"; $c = trim($b); echo "c: $c\n\n"; ?>That would work for that, but not for this: Go from this: <input type="submit" value=" A  "> 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.comb: Ac: A