Hide options

Eliminate duplicate (or more) characters in a string

Pregmatch in the example will remove all duplicates with an underscore
$text = preg_replace('#(_)+#','_',$text); 



Top