I have a script that pulls data from a database, and based on the info pulled, I want to colorize it and stuff
I want to make it so that if the data pulled is
&cTe&bst
It replaces it with
<font style="color:#F55">Te</font><font style="color:#5FF">st</font>
But also I need to make sure I can add more and more to it.
I’d also like it to be a function so I can simply do
$this->colorize('&cTe&bst');
I’m using CodeIgniter
Simple and easy to use.