Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Mbstring.php

function Mbstring::mb_stripos

1 call to Mbstring::mb_stripos()
Mbstring::mb_stristr in vendor/symfony/polyfill-mbstring/Mbstring.php

File

vendor/symfony/polyfill-mbstring/Mbstring.php, line 670

Class

Mbstring
Partial mbstring implementation in PHP, iconv based, UTF-8 centric.

Namespace

Symfony\Polyfill\Mbstring

Code

public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) {
    [
        $haystack,
        $needle,
    ] = str_replace(self::SIMPLE_CASE_FOLD[0], self::SIMPLE_CASE_FOLD[1], [
        self::mb_convert_case($haystack, \MB_CASE_LOWER, $encoding),
        self::mb_convert_case($needle, \MB_CASE_LOWER, $encoding),
    ]);
    return self::mb_strpos($haystack, $needle, $offset, $encoding);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal