Hello,
I'm working on a school project and i need to have a permalink field on the db for seo url.
I have a field on db that is name LajmeEmri that include the name of the article and another field LajmeLink that should be the permalink for seo. What i have now is this variable:
PHP Code:
$LajmeLink = preg_replace("#[^a-z0-9\-_]#i", "",str_replace(' ', '_', $LajmeEmri));
But this does not replace non latin chars like ë or ç to latin ones (e and c). Can anoyone help me to make the permalink only with latin chars? I need to replace ë with e and ç with c.
Thank you!
|