Re: [PHP] rtrim bug?

2001-09-17 Thread David Robley
On Tue, 18 Sep 2001 05:19, Kevin Way wrote: > I'm getting some really unexpected rtrim behaviour, which I believe is > a bug. > > echo 'X' . rtrim('foo bar ') . 'X'; > > this gives 'Xfoo barX' as one would expect. > > echo 'X' . rtrim('foo bar ', ' ') . 'X'; > > this gives 'XX' as the result. > >

[PHP] rtrim bug?

2001-09-17 Thread Kevin Way
I'm getting some really unexpected rtrim behaviour, which I believe is a bug. echo 'X' . rtrim('foo bar ') . 'X'; this gives 'Xfoo barX' as one would expect. echo 'X' . rtrim('foo bar ', ' ') . 'X'; this gives 'XX' as the result. i'm using php-4.0.6. Am I misunderstanding something horribly,