Ejemplo n.º 1
0
 /**
  * Replaces matching parts of the string.
  *
  * @param mixed   $search        The string or array to search for.
  * @param mixed   $replace       The string or array of replacements.
  * @param boolean $caseSensitive Determines to check for case sensitive
  *     strings.
  *
  * @return String The replaced string.
  *
  * @see Utf8HelperInterface#replace()
  *
  * @replaces ::replace
  */
 public function replace($search, $replace, $caseSensitive = true)
 {
     if ($caseSensitive) {
         return new static(static::$helper->replace($this->string, $search, $replace));
     }
     return new static(static::$helper->caseInsensitiveReplace($this->string, $search, $replace));
 }