for the first time I encounter such a problem. It works;
function translate($google) {
$en = array(
"Mother", "Father"
);
$de= array(
"Mutter", "Vater"
);
$s = str_replace($en,$de,$google);
return $s;}
But this does not work
$en = array(
"Mother", "Father"
);
$de= array(
"Mutter", "Vater"
);
function translate($google, $en, $de) {
$s = str_replace($en,$de,$google);
return $s;
}
where do i make mistakes?
Last time I'll use it like this;
echo translate(fonkfonk(str_replace(array("
","","\t"),array("","",""),file_get_contents($cache))));