bahattab
05-12-2009, 11:29 PM
How to Eliminate duplicate (or more) characters in a string by php
Eliminate duplicate (or more) characters in a string (the underscore in the example below):
$text = preg_replace('#(_)+#','_',$text);
http://tips-scripts.com/one_liners_php
Eliminate duplicate (or more) characters in a string (the underscore in the example below):
$text = preg_replace('#(_)+#','_',$text);
http://tips-scripts.com/one_liners_php