function

strripos . string . sncode

VERSIONlatest Find the position of the last occurrence of a case-insensitive substring in a string.

STRRIPOS(1e)

NAME

strripos - Find the position of the last occurrence of a case-insensitive substring in a string.

SYNOPSIS

strripos(where,what,offset)

PARAMETERS

where
The element to search in.
what
The element we are looking for.
offset
If specified, search will start this number of characters counted from the beginning of the string. If negative, search will be performed from the end of the string.

RETURN

Returns the position of where the needle exists relative to the beginning of the haystack string (independent of offset). Also note that string positions start at 0, and not 1. Returns -1 if the needle was not found.

EXAMPLES

in:  res=<{strripos("Hello world! zzZ","z")}>.
out: res=15.

AUTHOR

Written by Pusnei Sergey, <sergey@sednove.com>