15 lines
472 B
PHP
15 lines
472 B
PHP
|
<?php
|
||
|
class UmlautConverter
|
||
|
{
|
||
|
function convert($text)
|
||
|
{
|
||
|
$output = str_replace("ä","ä",$text);
|
||
|
$output = str_replace("Ä","Ä",$output);
|
||
|
$output = str_replace("ö","ö",$output);
|
||
|
$output = str_replace("Ö","Ö",$output);
|
||
|
$output = str_replace("ü","ü",$output);
|
||
|
$output = str_replace("Ü","Ü",$output);
|
||
|
$output = str_replace("ß","ß",$output);
|
||
|
return $output;
|
||
|
}
|
||
|
}
|