PHP: Converting emoticons

Status
Not open for further replies.

undark

Ars Scholae Palatinae
638
I want to write a simple script that searches a page for something like this:


and turns it into this: :D

Do I need to get php to search the database for the emoticon text, convert it, then print it, or can I just search a regular (not generated from a database) page within itself?

I'm sure this is really simple (then again, maybe not), but I'm not really sure where to start as my only PHP experience is with accessing MySQL databases. I don't want anyone to write out my code for me, but a starting point would be nice.
 
Status
Not open for further replies.