Script functions reference > Script functions in alphabetical order > S > StridX

StridX
Syntax
StridX(str2scan, search_str);
str2scan 
search_str 
Description
Locates the first occurrence of a sub-string in a string.
Returns
num
If search_str was found in str2scan, a number indicating the position of the first character of the first occurrence of search_str is returned. The first character position in the string is 1.
If search_str was not found in str2scan, 0 is returned.
If search_str is an empty string, 1 is returned.
Example
$a="Intelligent Output Management";
$b=stridx($a,"tell");
Result:
$b="3"
OpenText StreamServe 5.6 Updated: 2013-03-01