← All docs

iconv_strrpos()

Finds the last character position of a needle in a string.

iconv_strrpos()

function iconv_strrpos(string $haystack, string $needle, ?string $encoding = null): mixed

Finds the last character position of a needle in a string.

Parameters:

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

Returns: mixed

Availability

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

Internals

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