Created
July 17, 2019 07:22
-
-
Save ademalp/08cc5922d6544e56eec06796625895ff to your computer and use it in GitHub Desktop.
Codeigniter SEO Link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function seo_link($title) | |
{ | |
$title = str_replace(array('I', 'İ'), 'i', $title); | |
$title = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $title); | |
return url_title($title, '-', true); | |
} | |
$title = "Türkçe karakter içeren link IĞÜŞİÖÇ"; | |
seo_link($title); | |
//turkce-karakter-iceren-link-igusioc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment