Hi,

I have a string that looks like this
$text = 'blah, blah, blah, ';
I want to use rtrim to cut off the last comma and the whitespace. So I use
rtrim($text, ', ');

To my surprise, it doesn't cut anything off. When I echo $text the comma
and the space are still there.

Is rtrim broken or my logic or my script?

David K.

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to