I found this gem today. $special = str_replace(“,,,,”,“,”,$special); $special = str_replace(“,,,”,“,”,$special); $special = str_replace(“,,”,“,”,$special); Pretty sweet.