Esempio n. 1
0
 /**
  * Tells how many substrings with a specified text there are in a string.
  *
  * The search is case-sensitive.
  *
  * @param  string $substring The searched substring.
  * @param  int $startPos **OPTIONAL. Default is** `0`. The starting position for the search.
  *
  * @return int The number of such substrings in the string.
  */
 public function numSubstrings($substring, $startPos = 0)
 {
     return CUString::numSubstrings($this, $substring, $startPos);
 }