Home >> Snippet List >> Snippet

Name
Collapse multiple spaces or dashes
Description
Collapse multiple space or dash characters into a single character
PHP Snippet
<?PHP
 
$data = PREG_REPLACE( '([\$\-\(\) ])', ' ', $data);
 
?>