Required. Specifies the string to be searched for.
char
Required. Specifies the characters to search for. If the argument is a number, then searches for characters matching the numeric ASCII value.
Technical details
Return value:
Returns a string from a certain string in another All characters from the last occurrence of the string to the end of the main string. If the character is not found, returns FALSE.
The above is the detailed content of PHP function strrchr() to find the last occurrence of a string in another string. For more information, please follow other related articles on the PHP Chinese website!
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn