Re: rtrim bug?
| From: | David Robley | Date: | Tue, 18 Sep 2001 00:42:48 +0000 |
| Subject: | Re: rtrim bug? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67660@lists.php.net to get a copy of this message | ||
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.