Hi,
The example string is:
$string = "This ;bis;b really ;bcool;b";
Could you tell me the easiest way to do following string replacement:
$string = "This <b>is</b> really <b>cool</b>";
So first ;b will be replaced as <b> and second </b> and so on. I know ereg_replace(), but it will replace all ;b's with the same value... Of course I can do this by splitting the string by split(), but are there any better functions to do this?
-Sami