$query = 'this is a dentist';
$word = 'd';
$result = preg_replace("/\b($word)\b/ie", " ", $query);
//Result "this is a dentist"
$query = 'this is a bröd';
$word = 'd';
$result = preg_replace("/\b($word)\b/ie", " ", $query);
//Result "this is a brö"
Could anyone explain to me why the ö is treated as a whitespace? I really need support for åäö and want them to be treated as normal letters. This is probably very logical behaviour but I can't see it at the moment. :mad:
Is this something I can setup in php.ini or will we non-English-speakers always be doomed to eternal a-z-reprogramming? :/