Course Recommendation:
PHP strripos() Function
Example
Find the last occurrence position of "php" in the string: <?php echo strripos("You love php, I love php too!","PHP");
Run Example
Definition and Usage
Note:strripos() function finds the last occurrence position of the string in another string.
strripos() function is case insensitive.
- Find the last occurrence position of the string in another string (case sensitive)
Syntaxstringstrripos(findstrripos(start,
) | Description |
---|---|
string | Required. Specifies the string to be searched. |
find | Required. Specifies the character to be searched. |
start | Optional. Specifies where to start the search. |
Technical Details
Return Value: |
Returns the last occurrence position of the string in another string, or FALSE if the string is not found. Note: The string position starts from 0, not from 1. |
PHP Version: | 5+ |
Update Log: |
Since PHP 5.0, the find parameter can be a string containing more than one character. In PHP 5.0, a new feature was added start Parameters. |