This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.