I’m using friendly_urls, and want to have an sqlfield ‘friendly_url’ which will depend on the field ‘title’. So, if my title field is “This is My Title”, my friendly_url field will be “this_is_my_title”.
The problem is, while being a Portuguese website, the title field will often have characters like ‘ç’, ‘ã’, ‘é’, etc…
What is the best way (in mySql, if possible, in PHP if necessary), to turn “António Girão” to “antonio_girao”?
Thank you very much
A brute force method would be to use strtr to do in-place replacements: