Simple question, I searched over there and didnt found a way to make this.
I have a string (variable one) which can be like this:
#FF9900Hel#FFFFFFlo
I need a way to make the imagettftext function recognice those colors and draw the text using those colors. For example, in the example I mentioned before, the text should be: in red: Hel and in white:lo. I hope I explained well what I mean.
Thanks in advance
You not only need to recognize colors, you also need to align the strings. This is not automatic as it is in HTML.
I would do this by first splitting the string into its components parts: