Re: remove last comma in string
| From: | Richard Lynch | Date: | Fri, 09 Jun 2006 23:11:26 +0000 |
| Subject: | Re: remove last comma in string | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237719@lists.php.net to get a copy of this message | ||
On Fri, June 9, 2006 5:17 pm, Paul Novitski wrote:
>>rtrim() won't work, as ',' is not whitespace.
>
> Richard, you're wrong -- read the manual. All three functions
> trim(), ltrim(), and rtrim() allow you to append an optional list of
> characters to be trimmed:
>
> http://php.net/trim
> http://php.net/ltrim
> http://php.net/rtrim
Yeah, those wacky PHP Devs keep adding features faster than I can
learn and remember 'em :-)
--
Like Music?
http://l-i-e.com/artists.htm