mb-strripos
mb_strripos
Finds position of last occurrence of a string within another, case insensitive
ENTITY
int
false
mb_strripos
string
haystack
string
needle
int
offset
0
string
null
encoding
ENTITY
mb_strripos performs multi-byte safe strripos operation based on number of characters. needle position is counted from the beginning of haystack. First character's position is 0. Second character position is 1. Unlike mb_strrpos, mb_strripos is case-insensitive.
ENTITY
haystack
The string from which to get the position of the last occurrence of needle.
needle
The string to find in haystack.
offset
May be specified to begin searching an arbitrary number of characters into the haystack. Negative values will stop searching at an arbitrary point prior to the end of the haystack.
encoding
ENTITY
ENTITY
Return the numeric position of the last occurrence of needle in the haystack string, or ENTITY if needle is not found.
ENTITY
- If
offsetis greater than the length ofhaystack, aValueErrorwill be thrown.
ENTITY
ENTITY
| ENTITY | ENTITY |
|---|
ENTITY
strripos, strrpos, mb_strrpos
谢谢你的反馈!