Try this one
echo preg_replace(array('/\((.*)\)/','/\+([0-9])+\+/','/[0-9]+$/'), array('(<b>$1</b>)','+<b>$1</b>+','<i>$0</i>'), '11+5+3');
4
solved How to use REGEX in this case? [closed]
Try this one
echo preg_replace(array('/\((.*)\)/','/\+([0-9])+\+/','/[0-9]+$/'), array('(<b>$1</b>)','+<b>$1</b>+','<i>$0</i>'), '11+5+3');
4
solved How to use REGEX in this case? [closed]