| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public static function transliterate($string) |
||
| 17 | { |
||
| 18 | // the reason for using this rather "exotic" function in contrary to |
||
| 19 | // iconv is, that iconv is very unstable. It relies on the correct |
||
| 20 | // linked library, which means it works different on OSX than on Linux |
||
| 21 | // also iconv + setlocale is not thread safe, so if you are using IIS |
||
| 22 | // php-fpm, fastcgi or similar it can/will break |
||
| 23 | return transliterator_transliterate('Any-Latin; Latin-ASCII; [\u0100-\u7fff] remove', $string); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |