<?php $string = "آزمون پادشاهی متحده"; $pattern = '/[`~!@#$%^&*()_|+=?;:..’“\'"<>,€£¥•،٫؟»«{}[\]\\\\\/]+/ui'; $replacement = ''; $slug = trim(preg_replace($pattern, $replacement, $string)); $slug = str_replace(" ","-",$slug); echo $slug;
You have javascript disabled. You will not be able to edit any code.