PHP.nl

mb_strrchr

mb_strrchr

Finds the last occurrence of a character in a string within another

 **mb_strrchr** string $haystack string $needle bool $before_needle  $encoding
finds the last occurrence of
in 

and returns the portion of . If is not found, it returns false. mb_strrchr``needle``haystack``haystack``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

strrchr``mb_strstr``mb_strrichr