Php basic tutorial strrpos function usage tutorial. The usage of strrpos is the same as that of strripos. let's take a look at it. define and use the strrpos () function to determine whether the find function will appear in the string. If this function is successful, strrpos and strripos are used in the same way. let's take a look.
Definition and usage
TheStrrpos() The function determines whether find will appear in the string.
If this function is successful, otherwise FALSE is returned.
StrrposSyntax
Strrpos (string, find, start)
String: required. String search
Find: required. Find the specified string
Start: Optional. Specify where to start searching
Note: The strrpos () function is case sensitive.
Echo strrpos ("Hello world! "," Wo ");
?>
The output result is 6.
Let's look at another example.
Echo strrpos ("WWW.111CN. CN! "," Cn ");
?>
The output is 0.
Do you know why? The difference between strrpos and strripos is small.
Http://www.bkjia.com/PHPjc/445519.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/445519.htmlTechArticlestrrpos and strripos usage is the same, Next let's take a look. definition and usage of the strrpos () function to determine whether find will appear in the string. If this function exists successfully ,...