replace

1.0 1.1 1.2 1.3

Replaces the search string by the replace string

<?php
replace(string $value, mixed $search, mixed $replace)

Examples

Example #1

index.tpl
{replace "abc" "b" "B"} or {"abc"|replace:array(a,c):array(A,C)}

The above example will output:

aBc or AbC