str_replace()
Replaces a part with something else.
Syntax
str_replace($old, $new, $text)
Description
Replaces all old parts in the text with the new one.
Example
Loading editor…
Expected output
emma max emma
When to use?
Text cleaning, filling templates.