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

StrTok
Syntax
StrTok(str, char_sep, result_array);
str 
char_sep 
result_array 
Description
Takes two strings and a one-dimensional array and returns a numeric value indicating the number of tokens passed into the array.
Returns
A numeric value indicating the number of tokens passed into the array.
Example
$var1="Mon:Tue:Wed:Thu:Fri:Sat:Sun";
$num_of_tokens=StrTok($var1,":",$arr1);
Result:
$num_of_tokens=7
$arr1[0]="Mon"
$arr1[1]="Tue"
...
OpenText StreamServe 5.6 Updated: 2013-03-01