Re: Inserting string - need to trim comma

From: Date: Thu, 01 Apr 2004 19:55:13 +0000
Subject: Re: Inserting string - need to trim comma
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182068@lists.php.net to get a copy of this message
--- "John W. Holmes" <holmes072000@charter.net> wrote: > > http://www.php.net/rtrim > > rtrim() removes whitespace, not commas. That's exactly what I thought (and said). :-) Matt corrected me by pointing out a second, optional argument added in 4.1.0 where you can specify one or more characters to include in the trimming (so, whitespace + whatever characters you specify will be trimmed). Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/

« previous php.general (#182068) next »