On Jan 2, 2008 3:58 PM, Richard Lynch <[EMAIL PROTECTED]> wrote:
> Works for me:
>
> [EMAIL PROTECTED] ~/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

    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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to