Skip to content

Instantly share code, notes, and snippets.

@volkanmetin
Created December 18, 2018 14:04
Show Gist options
  • Save volkanmetin/57a0802f7aba7dda8c473320e1be3a4a to your computer and use it in GitHub Desktop.
Save volkanmetin/57a0802f7aba7dda8c473320e1be3a4a to your computer and use it in GitHub Desktop.
private function strtr($str)
{
return trim(mb_convert_case(str_replace('i', 'İ', mb_strtolower(str_replace(['İ', 'I'], ['i', 'ı'], $str))), MB_CASE_TITLE, 'UTF-8'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment