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 using php-4.0.6. Am I misunderstanding something horribly, or is
> this a legitimate bug?
> Kevin Way
The docs say that the second parameter was added in 4.0.7, so that may be
your problem :-)
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
The best way to win an argument is to be right.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]