My code:
$slug = preg_replace('/[^a-z0-9]+/i', '-', trim(strtolower($_POST["title"])));
Example, when i write: Úm Titulo, I get: -m-titulo. As you can see, i missed the Ú. When i write: Úm Titulo. I should get um-titulo. How to fix it? The preg_replace should not cut out words with accentuation.