logo
Home XtGem- Templates- XtScript- bottom
Find the position of the last occurrence of a substring in a string
[...] = optional ... = your value
[var $... = ]call strrpos $haystack=…;$needle=…[;$offset=…]
negative $offset values count from the end of $haystack
positive $offset values count from the start of $haystack
Show as text
Show as text
Reload
haystack= abcdefghijklmabcdefghijklm
needle = cde
offset = 0
position = 15
haystack = abcdefghijklmabcdefghijklm
needle = cde
offset = -12
position = 2
Powered by XtGem
About us Contact Forum top