Strrpos and Strripos Use the same, let's take a look at it.
Definition and usage
The strrpos () function determines whether find will appear in string.
This function returns False if there is a success.
Strrpos Syntax
Strrpos (String,find,start)
String: Required. Specify string Search
Find: Required. The specified string is found
Start: Optional. Specify where to start the search
Note: the Strrpos () function is case-sensitive
Echo Strrpos ("Hello world!", "Wo");
?>
Output is 6
Look again at an example.
Echo Strrpos ("www.111cn.cn!", "CN");
?>
Output is 0
Do you know why? Because Strrpos differs in size, it differs from strripos in case-sensitive.
http://www.bkjia.com/PHPjc/445519.html www.bkjia.com true http://www.bkjia.com/PHPjc/445519.html techarticle Strrpos and Strripos Use the same, let's take a look at it. Define and use the Strrpos () function to determine if find will appear in string. The success of this function if it exists, ...