public function _stringableReplace($search, $replace, $subject)
    {
        $search  = $this->_normalizeString($search);
        $replace = $this->_normalizeString($replace);
        $subject = $this->_normalizeString($subject);

        return str_replace($search, $replace, $subject);
    }
public function _stringableReplace($search, $replace, $subject)
    {
        $search  = $this->_normalizeString($search);
        $replace = $this->_normalizeString($replace);
        $subject = $this->_normalizeString($subject);

        return str_replace($search, $replace, $subject);
    }
public function _stringableReplace ( $ search , $ replace , $ subject ) { $ search = $ this -> _normalizeString ( $ search ) ; $ replace = $ this -> _normalizeString ( $ replace ) ; $ subject = $ this -> _normalizeString ( $ subject ) ; return str_replace ( $ search , $ replace , $ subject ) ; }
Replaces occurrences of needle in haystack.

@since [*next-version*]
@see str_replace()

@param string|Stringable $search  The string to look for.
@param string|Stringable $replace The string to replace with.
@param string|Stringable $subject The string look in.

@throw InvalidArgumentException If the needle, replacement, or haystack is invalid.
@throw RuntimeException If problem replacing.

@return string The haystack with all occurrences of needle replaced.
Replaces occurrences of needle in haystack .