3.6. Function reference
3.6.27. replace()
3.6.26. regexReplace()
« Previous
3.6.28. scalar()
Next »

3.6.27. replace()

Referencestring replace(string $text, string $replacedText, string $replacement)

Replaces all the occurrences of $replacedText in $text with $replacement:

{@text is 'Hello, world!'}
<!-- Display: "Hello, universe!" -->
<p>{replace(@text, 'world', 'universe')}
3.6.27. replace()
3.6. Function reference
« Previous
3.6.26. regexReplace()
Next »
3.6.28. scalar()