fenom/docs/en/mods/replace.md
2014-08-02 00:24:14 +04:00

319 B

Modifier replace

Replace all occurrences of the search string with the replacement string

{$string|replace:$search:$replace}

This modifier returns a string with all occurrences of $search in subject replaced with the given $replace value.

{$fruits|replace:"pear":"orange"}