目录

find

此方法用于搜索另一个字符串中第一次出现的字符串。

语法 (Syntax)

find(string, phrase)

参数 (Parameters)

  • string - 需要搜索的字符串值。

  • phrase - 这是需要在字符串中搜索的值。

返回值 (Return Value)

该方法返回字符串中第一个短语单词的单词编号。

例子 (Example)

/* Main program */ 
options arexx_bifs 
say find(' Hello World ','World') 

当我们运行上述程序时,我们将得到以下结果。

输出 (Output)

2
↑回到顶部↑
WIKI教程 @2018