Code:
$text=preg_replace("/\[rainbow\](.*?)\[\/rainbow\]/i","<font color='#5EFF00'>\\1</font><font color='#93FF00'>\\1</font><font color='#C8FF00'>\\1</font><font color='#FFFA00'>\\1</font><font color='#FFC300'>\\1</font><font color='#FE9400'>\\1</font><font color='#FF6700'>\\1</font><font color='#FF3800'>\\1</font><font color='#FF0000'>\\1</font><font color='#FF0039'>\\1</font><font color='#FE006E'>\\1</font><font color='#FF00A4'>\\1</font><font color='#FF00DF'>\\1</font><font color='#D900FF'>\\1</font><font color='#9E00FF'>\\1</font><font color='#6900FF'>\\1</font><font color='#3400FF'>\\1</font><font color='#0006FE'>\\1</font><font color='#003DFF'>\\1</font><font color='#006CFE'>\\1</font><font color='#0099FF'>\\1</font><font color='#00C8FF'>\\1</font><font color='#00FFFD'>\\1</font><font color='#00FFC3'>\\1</font><font color='#00FF8E'>\\1</font>", $text);
Comment