Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

JayDee84's avatar

How to remove or replace accents of a string

Hello Developers,

I have a string called $translation with about 350 translations and these translations are for about 22 Locale. ex: $translation = Änderungen etc. etc. how can i replace first letter of each translation with latin alphabets for ex: Ä = Ae,Ö = Oe etc. etc. for 22 Locale , there are lot of accents used by various countries . Is there any built in function that i can convert or replace these accents to latin alphabets . Thanks a lot in advance ... And have a nice day ...........

0 likes
2 replies

Please or to participate in this conversation.