Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>strcount() - count # of times str1 appears in str2</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     strcount() - count # of times str1 appears in str2
  Usage:    <integer> = strcount(<str1>,<str2>)
  Params:   string <str1> - the substring to search for
            string <str2> - the string to search in
  Returns:  integer equal to the number of times <str1> appears in
            <str2>, or 0 if none.

 ---------------------------------- Example ---------------------------------

                 ? strcount("at","that fat cat sat down")
                 * prints 4

                 ? strcount("AT","llessur nairb")
                 * prints 0

  Note:     The string search is case sensitive


See Also: chrcount() stratnext() atnext() chrswap()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson