mb_strrichr
mb_strrichr
Finds the last occurrence of a character in a string within another, case insensitive
**mb_strrichr** string $haystack string $needle bool $before_needle $encoding
finds the last occurrence of
in
and returns the portion of . Unlike
, is
case-insensitive.
If is not found, it returns false.
mb_strrichr``needle``haystack``haystack``mb_strrchr``mb_strrichr``needle
haystack
The string from which to get the last occurrence
of .
needle
needle
The string to find in .
haystack
before_needle
Determines which portion of
this function returns.
If set to true, it returns all of
from the beginning to the last occurrence of .
If set to false, it returns all of
from the last occurrence of to the end.
haystack``haystack``needle``haystack``needle
encoding
Returns the portion of .
or false if is not found.
haystack``needle
mb_stristr``mb_strrchr