src/Type/StringType.php
public function replace($oldString, $newString)
    {
        $this->stringVar = str_replace($oldString, $newString, $this->stringVar);
    }
public function replace($oldString, $newString)
    {
        $this->stringVar = str_replace($oldString, $newString, $this->stringVar);
    }
public function replace ( $ oldString , $ newString ) { $ this -> stringVar = str_replace ( $ oldString , $ newString , $ this -> stringVar ) ; }
Returns a new string resulting from replacing all occurrences of oldString in this string with newString.

@since   1.1
@param   string $oldString The old string.
@param   string $newString The new string.
@return  void
Returns a new string resulting from replacing all occurrences of oldString in this string with newString .