$codeStart = '[b]';
$codeEnd = '[\/b]';
$htmlStart = '<B>';
$htmlEnd = '</B>';
$changeStart = ereg_replace($codeStart, $htmlStart, $original_string);
$changeEnd = ereg_replace($codeEnd, $htmlEnd, $changeStart);
$new_string = $changeEnd;
Now, is there anyway to do above replacement in 1 go? as i have about 10 different ereg_replace() going on, and it gets bit messy to write them all in a sequence.
thanks,
Daarius ...