Before asking, you should have done a search at google.com... I searched for 'emoticons replace php', and it returned HEAPS of results, including this one, which seems close to what you're asking...
http://www.devarticles.com/art/1/161/2 Search the archives and google before posting please! Justin on 25/11/02 5:00 AM, Stephen ([EMAIL PROTECTED]) wrote: > Thanks! Just one more question. I also want to replace emoticons, such as > :-), :), or ;-), that are stored in a table. The structure is this: id, > emote, replace. How could I check to see if the text the user typed in > contains any of the emotes in the table then replace them with the correct > replacement? Also, how could I then limit how many are in the post? Justin French -------------------- http://Indent.com.au Web Development & Graphic Design -------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php