Re: First stupid post of the year.
| From: | tedd | Date: | Thu, 03 Jan 2008 00:00:41 +0000 |
| Subject: | Re: First stupid post of the year. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266541@lists.php.net to get a copy of this message | ||
At 3:20 PM -0500 1/2/08, Robert Cummings wrote:
<?php $foo = ' A '; $foo = str_replace( ' ', ' ', $foo ); $foo = trim( ereg_replace( '[ ]+', ' ', $foo ) ); echo '['.$foo.']'."\n"; ?>Nope, still didn't work for going from this: <input type="submit" value=" A  "> to this: A via $submit = $_POST['submit']; Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com