Re: First stupid post of the year.
| From: | Daniel Brown | Date: | Wed, 02 Jan 2008 21:07:14 +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-266525@lists.php.net to get a copy of this message | ||
On Jan 2, 2008 3:58 PM, Richard Lynch <ceo@l-i-e.com> 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";
> ?>
> b: A
>
> c: A
Tedd's problem is that it's not working on the web, though, Rich.
I tested mine and it worked fine from the CLI, too, but not when
encoded and then decoded via HTTP.
--
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]
If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.