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.
>
>
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,
2 matches
Mail list logo