ereg_replace and preg_replace question
Posted: Fri Feb 17, 2006 11:18 am
Can someone tell me what this does?
Code: Select all
function sanitize_string($string) {
$string = ereg_replace(' +', ' ', trim($string));
return preg_replace("/[<>]/", '_', $string);
}