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);
````}
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/379rc95
via IFTTT
Aucun commentaire:
Enregistrer un commentaire