in , ,

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

Advertisement

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

Written by Deepanker

Deepanker Verma is the founder of Techlomedia. He is a tech blogger, developer and gadget freak.

Leave a Reply

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

Loading…

DoFollow and NoFollow Links, You Need To Know About These

File Upload Without Overwriting Existing Files of Same Name in PHP