Posted By

newsok on 10/26/10


Tagged

smiley


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

luman


Generating automatic smileys


 / Published in: PHP
 

  1. $texte='A text with a smiley :-)';
  2. echo str_replace(':-)','<img src="smileys/souriant.png">',$texte);

Report this snippet  

You need to login to post a comment.