modifier.replace.php
Plugin from smarty project and adapted for jtpl
Tags
Table of Contents
- jtpl_modifier_common_replace() : string
- modifier plugin : simple search/replace
Functions
jtpl_modifier_common_replace()
modifier plugin : simple search/replace
jtpl_modifier_common_replace(string $string, string $search, string $replace) : string
You should provide two arguments, like the first both of str_replace
{$mystring|replace:'foo':'bar'}
Parameters
- $string : string
-
the string to modify
- $search : string
-
the string to search
- $replace : string