I have a script that pulls user comments from a database, which works fine.
It's an image based script so I'm trying to now add emoticons, for such as =D or =)
To do this I plan to use list(,,,,,,$left,$top) for the imagettfbox of where =D or =) can be found in the text..
How would I get php to return the location of where the '=D' is in the text? Str_split wouldn't work well enough.
How could I then, from getting the location of it, get it in a imagettfbbox to get the top left X and Y values for it in relation to the text?
Hope that makes sense.