<?php $str = "lorem ipsum doler sit amet. Amet ipsum doleram paradem"; $find = "lorem|ipsum"; $find = explode('|', $find); Foreach($find as $f){ $replace[] = "{" . $f . "}"; } $newString = str_replace($find, $replace, $str); Echo $newString;
You have javascript disabled. You will not be able to edit any code.