Пример #1
0
 static function strripos($s, $needle, $offset = 0)
 {
     if (false !== strpos($needle, 'I')) {
         $needle = str_replace('I', 'ı', $needle);
     }
     if (false !== strpos($needle, 'İ')) {
         $needle = str_replace('İ', 'i', $needle);
     }
     if (false !== strpos($s, 'I')) {
         $s = str_replace('I', 'ı', $s);
     }
     if (false !== strpos($s, 'İ')) {
         $s = str_replace('İ', 'i', $s);
     }
     return parent::strripos($s, $needle, $offset);
 }