The strrpos () function is used to locate the last occurrence of a string in another string. This function is case-sensitive. In contrast to the strripos () function, the strripos () function is case-insensitive. This article will show you the
The strripos () function defines and uses the strripos () function to locate the last occurrence of a string in another string. If the operation is successful, the location is returned. Otherwise, false is returned. The strrpos (string, find, start)
Phpstrstr () strrchr () strpos () strrpos () function. These four functions are character operation functions, mainly used to determine the number of occurrences of a character. For more information, see. The code is as follows: Copy the code?
Instance
Find the last occurrence of "PHP" in the string:
Definition and usage
The Strrpos () function finds the position of the last occurrence of a string in another string (case-sensitive).
Note: the Strrpos () function is
1. strposintstrpos (string $ haystack, mixed $ needle [, int $ offset0]) function: find the position of the first occurrence of a string. description: Return & nbsp; needle & nbsp; in & nbsp; the first digit position in haystack & nbsp. And & nbsp; 1
Strripos () functionDefinition and usageThe Strripos () function finds the position of the last occurrence of a string in another string.If successful, returns the position, otherwise false.GrammarStrrpos
The usage of strrpos and strripos is the same. Let's take a look.Definition and usageTheStrrpos() The function determines whether find will appear in the string.If this function is successful, otherwise FALSE is returned.StrrposSyntaxStrrpos (string,
Strripos () function
Definitions and usageThe Strripos () function finds the last occurrence of a string in another string.If successful, the position is returned, or false.
GrammarStrrpos (String,find,start)
Parameters
Description
This article is about a simple use of strrpos explode is_array and other functions Oh,
About Strrpos judgmentCharacter Strrpos ($j _rs->selectedjob, '-') if there is a character to be checked
About Explode judgmentIn what form does the character
PHP Strpos () function
PHP String function definition and usage
The Strpos () function returns the position where the string first appears in another string.
If the string is not found, it returns false. Grammar
Strpos (String,find,start)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.