On Jan 2, 2008 3:58 PM, Richard Lynch <ceo@xxxxxxxxx> 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php