此函数将返回给定子字符串在特定字符串中出现的次数。通过这种方式,您可以检查单个字母或短语在存储的文本部分中重复多少次。
string_count(substr, str);
Real
str1 = "Hello World";ocount = string_count( "o", str1 );
这将变量 ocount 设置为 str1 中 “o” 的数量,在本例中为2。