replace
A simple search and replace on a variable. This is equivalent to the PHP's
str_replace() function.
Parameter PositionTypeRequiredDefaultDescription1stringYesn/aThis is the string of text to be replaced.2stringYesn/aThis is the string of text to replace with.replace
assign('articleTitle', "Child's Stool Great for Use in Garden.");
?>
]]>
Where template is:
Will output:
See also
regex_replace
and
escape.