<?php function make_clean_url($url) { $url_word_separator = '-'; $url = preg_replace('/\R+/', ' ', $url); $url = preg_replace('/[\s.]+/', '-', $url); $url = preg_replace('/&#?[a-z0-9]+;|[^\p{Arabic}a-z0-9#-]+/ui', '', $url); $url = trim($url, " $url_word_separator"); return $url; } echo make_clean_url("اﺻﻠﯽ ﺗﺮﯾﻦ ﻓﺮق اﺳﺘﻌﺎره ﻣﺼﺮﺣﻪ و ﻣﮑﻨﯿﻪ ﭼﯿﺴﺖ؟");
You have javascript disabled. You will not be able to edit any code.