'Found Code: Replacing Runs of Commas' Jan 27, 2009 I found this gem today. $special = str_replace(“,,,,”,“,”,$special); $special = str_replace(“,,,”,“,”,$special); $special = str_replace(“,,”,“,”,$special); Pretty sweet.