/** * Replaces all occurrences of a substring in a string with a specified string, searching case-insensitively, and * returns the new string, optionally reporting the number of replacements made. * * @param string $what The searched substring. * @param string $with The replacement string. * @param reference $quantity **OPTIONAL. OUTPUT.** After the method is called with this parameter provided, the * parameter's value, which is of type `int`, indicates the number of replacements made. * * @return CUStringObject The resulting string. */ public function replaceCi($what, $with, &$quantity = null) { return CUString::replaceCi($this, $what, $with, $quantity); }