/** * Removes all occurrences of a substring from a string, searching case-sensitively, and returns the new string, * optionally reporting the number of removals made. * * @param string $what The searched substring. * @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 removals made. * * @return CUStringObject The resulting string. */ public function remove($what, &$quantity = null) { return CUString::remove($this, $what, $quantity); }