I am trying to use preg_replace function and it works as expected. The problem is it also removes the special alphabet like this one Ö and removes O. How can I keep Ö?
$string='GÖTEBORG-SEASON-1';
echo $str=preg_replace('/[^A-Za-z-_]/', '', $string);
It output GTEBORG-SEASON- (Ö is missing) but I am expecting GÖTEBORG-SEASON-
Thank you.