= 'A') && ($ch <= 'Z')) $ch = strtolower($ch); $str[$i] = $ch; } $str = str_replace('Á', 'á', $str); $str = str_replace('É', 'é', $str); $str = str_replace('Í', 'í', $str); $str = str_replace('Ó', 'ó', $str); $str = str_replace('Ö', 'ö', $str); $str = str_replace('Ő', 'ő', $str); $str = str_replace('Ú', 'ú', $str); $str = str_replace('Ü', 'ü', $str); $str = str_replace('Ű', 'ű', $str); return $str; } // A szóközre cserélendő karakterek $search = array(',', '.', ':', ';', '"', "'", '/', "\\", '<', '>', "\t", "\n"); $question = DownStr(str_replace($search, ' ', $question)); // A dupla szóközök eltávolítása while(strpos($question, ' ') !== false) $question = str_replace(' ', ' ', $question); $answer = $question; ?>