How can I replace multiple strings with str_replace
?
$oldurl = JFactory::getURI();
$newurl = str_replace('example1', 'replacedwiththis', $oldurl);
but I need that this code works also if the URL
contains example2
.
So I need a code that changes both example1
and example2
with replacedwiththis
.