rtrim bug?

From: Date: Mon, 17 Sep 2001 19:49:07 +0000
Subject: rtrim bug?
Groups: php.general 
Request: Send a blank email to php-general+get-67639@lists.php.net to get a copy of this message
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

« previous php.general (#67639) next »