public static function normalizeText($text)
    {
        $text = strtolower($text);
        $text = preg_replace('/[^a-z0-9 -]/im', ' ', $text);
        $text = preg_replace('/( +)/im', ' ', $text);

        return trim($text);
    }
public static function normalizeText($text)
    {
        $text = strtolower($text);
        $text = preg_replace('/[^a-z0-9 -]/im', ' ', $text);
        $text = preg_replace('/( +)/im', ' ', $text);

        return trim($text);
    }
public static function normalizeText ( $ text ) { $ text = strtolower ( $ text ) ; $ text = preg_replace ( '/[^a-z0-9 -]/im' , ' ' , $ text ) ; $ text = preg_replace ( '/( +)/im' , ' ' , $ text ) ; return trim ( $ text ) ; }
Removes symbols & characters other than alphabetics

@param  string $text
@return string normalized text
Removes symbols & characters other than alphabetics