This function will return the amount of times the given substring appears within a specific string. In this way you can check for how many times a single letter or a phrase is repeated in a section of stored text.
Argument Description substr The substring to check the string for. str The string to check.
str1 = "Hello World";
ocount = string_count( "o", str1 );
This will set the variable ocount to the number of "o"s in str1, in this case 2.