How to convert smiley codes to smiley images in web page using php

Best WordPress Hosting
How to convert smiley codes to smiley images in web page using php



When I was working on a chat application, I had gone through this problem where user uses smiley codes in chat but it changes to smiley image. This kind of chat smiley conversion can be seen in Facebook. Making this kind of smiley chat system not typical. You only need to identify the smiley code and then convert it into image code. 

Look at the code below which has some functions.

The code given above will change the smiley code to smiley image. You have to show this to your webpage.

advertisement

Leave a Reply

Your email address will not be published. Required fields are marked *