the
csOffset
of
(
needle ,
haystack )
csOffset
(
needle ,
haystack )
Haystack and needle yield string
s.
The csOffset
function returns the index of the first appearance of the string needle in the string haystack, starting at 1. If needle cannot be found in haystack, zero
is returned.
This function is case-sensitive. For a case-insensitive version of this function, see offset
. For a regular expression-based version of this function, see regOffset
.
This function is similar to csInstr
, but the arguments are in reverse order.
offset
, regOffset
, instr
, csInstr
, regInstr
, rinstr
, csRinstr
, regRinstr