From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.0.6
PHP Bug Type:     Unknown/Other Function
Bug description:  trim/rtrim/ltrim do not work as advertised

<?php
echo rtrim('foo bar ', ' ');
?>

if you specify a character class as the second argument (like the
documentation states is legal), you get returned nothing at all.  a quick
look at string.c seems to indicate no evidence of this ever working, is the
code wrong, or the documentation?
-- 
Edit bug report at: http://bugs.php.net/?id=13352&edit=1


-- 
PHP Development 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]

Reply via email to