Replaces substrings in a given string with specified replacements.
The original string.
The substring(s) to be replaced. Can be an array or a single string.
The replacement(s) for the substrings. Can be an array or a single string.
Replaces substrings in a given string with specified replacements.