src/site/php/iconv strrpos.php

Functions

cfw_iconv_strrpos()

cfw_iconv_strrpos(string  $haystack, string  $needle, string|null  $encoding = null) : int|false

Parameters

string $haystack

The text to search.

string $needle

What to look for.

string|null $encoding

The charset of both, or NULL for the polyfill's internal one.

Returns

int|false —

The character offset of the last match.