← All docs

strripos()

Finds the numeric position of the last case-insensitive occurrence of a substring.

strripos()

function strripos(string $haystack, string $needle, int $offset = 0): mixed

Finds the numeric position of the last case-insensitive occurrence of a substring.

Parameters:

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

Returns: mixed

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

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