Chatrapati Posted August 16, 2013 Share Posted August 16, 2013 How to add similey to php page, eg: if we add - it should show similiey[image] Quote Link to comment Share on other sites More sharing options...
Chatrapati Posted August 16, 2013 Author Share Posted August 16, 2013 if we add .smile. it should be converted into image lyyk this >> Quote Link to comment Share on other sites More sharing options...
Ron916 Posted August 16, 2013 Share Posted August 16, 2013 (edited) How about this? str_replace('.smile.', '<img src="/path/to/smiley.jpg" alt=":)">', $html); Edited August 16, 2013 by Ron916 Quote Link to comment Share on other sites More sharing options...
Chatrapati Posted August 16, 2013 Author Share Posted August 16, 2013 Why did yu write $html there? Quote Link to comment Share on other sites More sharing options...
kicken Posted August 16, 2013 Share Posted August 16, 2013 Because you have to have string variable with your content, which has been represented as $html in the example. Quote Link to comment Share on other sites More sharing options...
Chatrapati Posted August 17, 2013 Author Share Posted August 17, 2013 How to use,it. gv an example please Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.