PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $str = ".perfect,beautiful,love!"; echo $str . PHP_EOL; $text = preg_replace('/(.)\1+/u', '$1', $str); $text = preg_replace("|[^\d\w ]+|i"," ", $corrected); $text = preg_replace("|\b[\d\w]{1,3}\b|i"," ",$text); $text = preg_replace("|[\s]+|i"," ",$text); $text = strtolower(trim($text)); echo $t;
Show:  
Copy Clear