Re: Inserting string - need to trim comma
| From: | Matt Matijevich | Date: | Thu, 01 Apr 2004 19:25:57 +0000 |
| Subject: | Re: Inserting string - need to trim comma | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-182063@lists.php.net to get a copy of this message | ||
<snip>
--- Matt Matijevich <matijevich@alliancetechnologies.net> wrote:
> http://www.php.net/rtrim
rtrim() trims whitespace, not commas.
Hope that helps.
Chris
</snip>
string rtrim ( string str [, string charlist])
there is a second optional paremeter you can add to rtrim
rtrim($var,',');
will take any trailing commas off of the end