I am using localization and want to change in Arabic special characters here is my code,
function helper_get_unique_slug($slug)
{
if (!empty($slug)) {
$slug = str_replace(" ", "_", $slug);
$slug=preg_replace('/[^A-Za-z0-9\-]/', '', $slug);
````}
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire