Created
April 30, 2014 13:47
-
-
Save anova/03102847955c881ef762 to your computer and use it in GitHub Desktop.
html encode turkish
This file contains 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 | |
//htmlencode turkish | |
function htmlencode_tr($input) { | |
return str_replace( | |
array('ç', 'ğ', 'ı', 'ö', 'ş', 'ü', 'Ç', 'Ğ', 'İ', 'Ö', 'Ş', 'Ü'), | |
array('ç', 'ğ', 'ı', 'ö', 'ş', 'ü', 'Ç', 'Ğ', 'İ', 'Ö', 'Ş', 'Ü'), | |
$input); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment