Re: str_replace around a character??

From: Date: Thu, 14 Jul 2011 22:27:18 +0000
Subject: Re: str_replace around a character??
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-314083@lists.php.net to get a copy of this message
On 07/13/2011 04:03 PM, Karl DeSaulniers wrote: > > Thanks Shawn, > I had actually found the same thing myself.. > > $subCc = array_map('trim',explode(",",$subCc)); > > But I could not find my post last night to make a new comment about it. > Thank you for yours though.. I did not think of the implode part. > > Best, > > Karl DeSaulniers > Design Drumm > http://designdrumm.com > You probably want the array_filter() in there also, because commas at the beginning or end or other issues can leave you with empty array elements that will still be imploded resulting in just a comma. -- Thanks! -Shawn http://www.spidean.com

« previous php.general (#314083) next »