$a = $_GET['a'];
$d = array("æ", "ø", "å", "Æ", "Ø", "Å");
$e = array("æ", "ø", "å", "Æ", "Ø", "Å");
$new = str_replace("$d","$e","$a");
echo $new;
Can anybody tell me what I'm doing wrong here. It works perfectly fine if I just write:
$a = $_GET['a'];
new = str_replace("ø","ø","$a");
echo $new;
Then atleast the "ø" is replaced, but I really want to do it with two arrays instead of replacing one letter at a time, 6 times...