$substitute = array('ä' => 'ae', 'ö' => 'oe', 'ü' => 'ue', 'ß' => 'ss');
$text = strtr(strtolower($text), $substitute);
$substitute = array('ä' => 'ae', 'ö' => 'oe', 'ü' => 'ue', 'ß' => 'ss');
$text = strtr(strtolower($text), $substitute);