First, check this out: https://laravel.com/docs/5.7/localization
But in any case, https://stackoverflow.com/questions/14114411/remove-all-special-characters-from-a-string
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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 ...........
What you need to search for is transliteration. Check this out: http://php.net/manual/en/transliterator.transliterate.php
Please or to participate in this conversation.