hi!
i need this to work:
$string="hi %i am% just an %example%";
i need the first "%" to be replaced by "<b>", the second by "</b>", the third by "<b>" again.
i mean alternate substitution.
i tried str_replace ("%",array ('<b>','</b>'),$string); but it doesn't work (in fact it shouldn't).
Any ideas? thanks in advance. (i hope that my little english is enough for you to understand me)