← All docs

mb_stripos()

Finds the first character position using simple case folding, or returns false.

mb_stripos()

function mb_stripos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false

Finds the first character position using simple case folding, or returns false.

Parameters:

  • $haystack (string)
  • $needle (string)
  • $offset (int), default 0, optional
  • $encoding (?string), default null, optional

Returns: int|false

Availability

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how mb_stripos is implemented in the compiler, see the internals page.