
Last chance! 50% off unlimited learning
Sale ends in
str_replace(string, pattern, replacement)
regex
for details.<1>,
<2> will be replaced with the contents of the respective matched
group (created by ()
) within the pattern.
string
, pattern
and
replacement
. Shorter arguments will be expanded
to length of longest.sub
which this function wraps,
str_replace_all
to replace all matches