Supported Versions: PHP 5 >= 5.2.0, PHP 7, PHP 8
Finds the last occurrence of a character in a string within another, case insensitive
<?php mb_strrichr( string $haystack, string $needle, bool $before_needle = false, ?string $encoding = null): string|false