elFinder\elFinderVolumeDriver::stripos PHP Метод

stripos() защищенный Метод

Find position of first occurrence of string in a string with multibyte support
Автор: Alexey Sukhotin
protected stripos ( string $haystack, string $needle, integer $offset ) : integer | boolean
$haystack string The string being checked.
$needle string The string to find in haystack.
$offset integer The search offset. If it is not specified, 0 is used.
Результат integer | boolean
    protected function stripos($haystack, $needle, $offset = 0)
    {
        if (function_exists('mb_stripos')) {
            return mb_stripos($haystack, $needle, $offset);
        } else {
            if (function_exists('mb_strtolower') && function_exists('mb_strpos')) {
                return mb_strpos(mb_strtolower($haystack), mb_strtolower($needle), $offset);
            }
        }
        return stripos($haystack, $needle, $offset);
    }