the
csInstr
of
(
haystack ,
needle )
csInstr
(
haystack ,
needle )
Haystack and needle yield string
s.
The csInstr
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 instr
. For a regular expression-based version of this function, see regInstr
.
This function is similar to csOffset
, but the arguments are in reverse order.
instr
, regInstr
, offset
, csOffset
, regOffset
, rinstr
, csRinstr
, regRinstr