How to remove diacritics from text?

前端 未结 9 1661
余生分开走
余生分开走 2020-11-29 04:56

I am making a swedish website, and swedish letters are å, ä, and ö.

I need to make a string entered by a user to become url-safe with PHP.

Basically, need to

9条回答
  •  抹茶落季
    2020-11-29 05:32

    One simple solution is to use str_replace function with search and replace letter arrays.

提交回复
热议问题